• Resolved RHHM

    (@huismanmedia)


    It seems that the plugin uses two Fontawesome versions: 5.13.0 and 4.7.0. This is causing a conflict which prevents my menu icons to display correctly.

    5.13.0 is enqueued as font-awesome-5-css
    4.7.0 is enqueued as obfx-module-pub-css-menu-pictogrammen-0-css

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Vytis

    (@bvytis)

    Hi @huismanmedia,

    Thank you for reporting this, could you provide an example of how the menu items appear and maybe even the page where both versions of FontAwesome are loaded by the OrbitFox plugin to check the issue and replicate it?

    Thank you!

    Thread Starter RHHM

    (@huismanmedia)

    I can’t show an example because I already switched to a different theme. And the site isn’t public yet.

    But you can see the problem in the source code.
    obfx_modules/gutenberg-blocks/init.php

    public function enqueue_block_assets() {
    	wp_enqueue_style( 'font-awesome-5', plugins_url( 'assets/fontawesome/css/all.min.css', __FILE__ ), [], $this->version );
    	wp_enqueue_style( 'font-awesome-4-shims', plugins_url( 'assets/fontawesome/css/v4-shims.min.css', __FILE__ ), [], $this->version );
    }

    vendor/codeinwp/elementor-extra-widgets/class-elementor/extra-widgets.php

    public function register_styles() {
    	wp_register_style( 'eaw-elementor', plugins_url( '/css/public.css', __FILE__ ), array(), $this::$version );
    	wp_register_style( 'font-awesome-5', ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/all.min.css', false, $this::$version );
    }

    obfx_modules/menu-icons/init.php

    public function public_enqueue() {
    	if ( $this->should_load_fa() === false ) {
    		return array();
    	}
    
    	return array(
    		'css' => array(
    			'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' => array( 'dashicons' ),
    			'public' => false,
    		),
    	);
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fontawesome conflict’ is closed to new replies.