Site logo

[Resolved] How to disable fontawesome-webfont.woff2 since I am using non-google fonts

Home Forums Support [Resolved] How to disable fontawesome-webfont.woff2 since I am using non-google fonts

Home Forums Support How to disable fontawesome-webfont.woff2 since I am using non-google fonts

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

    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?

    #183209
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #183227
    Deyana

    I also ask for this information because of the same reason.

    #183257
    Tom
    Lead Developer
    Lead Developer

    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/

    #537036
    Natalie

    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' );

    #537195
    Tom
    Lead Developer
    Lead Developer

    You can actually just go to “Customize > General” and turn on the essential icons now. That will remove Font Awesome automatically.

    #537554
    Natalie

    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

    #537879
    Tom
    Lead Developer
    Lead Developer

    Awesome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.