Archived topic
How to disable fontawesome-webfont.woff2 since I am using non-google fonts
7 replies · Started by Dilip on March 30, 2016
So I noticed fontawesome-webfont.woff2 is heavy on my page load time despite the fact that I am using non-Google font
How do I disable this intereference?
Font Awesome and Google Fonts aren't the same thing.
Font Awesome is being used throughout the site for things like the dropdown arrow, icons in your blog posts, back to top button, mobile menu toggle icon etc..
You can remove it, but you'll have to add alternatives for all of those icons.
Let me know :)
I also ask for this information because of the same reason.
You can remove font awesome, but you will have to replace the icons I mentioned above:
https://gist.github.com/generatepress/54d599afe9933c02f1b3
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Thanks for the code Tom
I found I had to change the 'fontawesome' to 'font-awesome' to make the code work.
wp_dequeue_style( 'font-awesome' );
You can actually just go to "Customize > General" and turn on the essential icons now. That will remove Font Awesome automatically.
Thanks for that info - it will be useful on other projects
For this project I have something else that is loading the full font Awesome library, so I don't need GP to load even the "essential" icons.
Your code snippet works fine once I got the 'font-awesome' name right
Awesome :)