• Resolved osxxso

    (@osxxso)


    Hi, I’m already loading a font awesome library.

    Is there a way to stop flexy breadcrumb from loading it’s own font awesome library?

    I’m loading this library:
    <link rel=’stylesheet’ id=’load-fa-css’ href=’//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css?ver=5.4.2′ media=’all’ />

    Flexy is loading this library:
    font-awesome.min.css?ver=4.7.0

    • This topic was modified 4 years, 8 months ago by osxxso.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @osxxso,

    You can do this with the customization of the Flexy Breadcrumb.
    Go to wp-contents/plugins/flexy-breadcrumb/public/class-flexy-breadcrumb-public.php. On this file please remove the below code from line 83.

    wp_enqueue_style( $this->flexy_breadcrumb . "-font-awesome", plugin_dir_url( __FILE__ ) . 'css/font-awesome.min.css', array(), '4.7.0', 'all' );
    

    It will dequeue the font awesome library.

    Please let us know if you need further help.

    Regards,

    Hello @osxxso,

    Don’t change anything in the plugin. Just add the below code in the functions.php file of your active theme.

    function fbc_dequeue_font_awesome_styles() {
        wp_dequeue_style( 'flexy-breadcrumb-font-awesome' );
            wp_deregister_style( 'flexy-breadcrumb-font-awesome' );
    }
    add_action( 'wp_print_styles', 'fbc_dequeue_font_awesome_styles' );
    

    It will dequeue the font awesome library.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove font awesome library from flex breadcrumb’ is closed to new replies.