Remove FontAwesome loading All.CSS
-
Hi there,
How can I stop Font Awesome being used on my site?
From what I can tell, my site isn’t using Font Awesome. I’m not using the FA Brands for social icons and have replaced the shopping cart icon (FA Solid 900) with an icon image I’m hosting via the site.
Using the Asset CleanUp plugin, I’ve unloaded Font Awesome site wide and have added the below code to functions.php.
However, when running a GT Metrix speed test and other speed tests, the site still calls on Font Awesome for the All.Css (https://use.fontawesome.com/releases/v5.5.0/css/all.css)
I don’t want to use Font Awesome, because it is slowing down my site load speed.
Any support and tips would be greatly appreciated.
Code added to Functions.php
//* TN Dequeue Styles - Remove Font Awesome from WordPress theme add_action( 'wp_print_styles', 'tn_dequeue_font_awesome_style' ); function tn_dequeue_font_awesome_style() { wp_dequeue_style( 'fontawesome' ); wp_deregister_style( 'fontawesome' ); }The page I need help with: [log in to see the link]
The topic ‘Remove FontAwesome loading All.CSS’ is closed to new replies.
