Tagged: font awesome
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.
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/
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
Hello, thank you. It did not work, please see the screenshots. Font-Awesome is still loading in browser.
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
Resolved. Thank you @Guenni007 and @Ismael. 3d-flip-book is uninstalled. No Font-Awesome is loaded anymore.
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