Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1368098

    Hello, I would like to disable the automatic loading of Font-Awesome. To do this, I need to find this line (or similar) in the functions.php file….

    wp_enqueue_style('mh-font-awesome', "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css", array(), null);

    …and then replace it with this one:

    // Dequeue Styles - Remove Font Awesome from WordPress Theme
    add_action( 'wp_print_styles', 'dequeue_font_awesome_style' );
    function dequeue_font_awesome_style() {
          wp_dequeue_style( 'mh-font-awesome' );
          wp_deregister_style( 'mh-font-awesome' );
    }

    I can’t find it anywhere though. Not even in functions-enfold.php. Where can I find them? Thanks.

    #1368113

    it is part of advanced layerslider – so if you do not need advanced layerslider – you can deactivate the whole layerslider on Layout Builder Tab
    you find the instruction to load on: /config-layerslider/LayerSlider/assets/includes/

    #1368205

    Hi,

    Thanks for the info @Guenni007.


    @hugogimenez
    : Are you using the Layer Slider? If not, you can disable it by adjusting the Enfold > Layout Builder > Layerslider Options as @Guenni007 suggested above.

    Best regards,
    Ismael

    #1368215

    Hello, thank you. It did not work, please see the screenshots. Font-Awesome is still loading in browser.
    Screenshot 1
    Screenshot 2

    #1368235

    Hi,

    Looks like font icon file is also added by the _3d-flip-book plugin.

    // https://1drv.ms/u/s!AjjTfXSRbKTvyTLzrumd1K2yZkJ1?e=qG8LmN

    You may need to disable it from the plugin’s theme options. Please contact the plugin developer for more info.

    Best regards,
    Ismael

    #1368241

    Yep :

    #1369003

    Resolved. Thank you @Guenni007 and @Ismael. 3d-flip-book is uninstalled. No Font-Awesome is loaded anymore.

    #1369009

    Hi,
    Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘"font-awesome" in functions.php?’ is closed to new replies.