Remove FontAwesome loading All.CSS
-
Hi there,
I’m using Caxton (v1.21) for my site and it looks like it is still calling Font Awesome for the All.Css (https://use.fontawesome.com/releases/v5.5.0/css/all.css), when running a GT Metrix speed test or other speed tests.
I’ve removed 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.
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.