• mh811

    (@mh811)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • There are a few places where Fontawesome content is being called, but for a default Storefront setup, any of those fonts are on your server already — in other words, Storefront won’t make any calls to any content on fontawesome.com.

    Looking at your site, it’s likely that another plugin is making the call to tha all.css file. Here’s what I see:

    ....if(document.querySelector(".fa,.fas,.fab,.far")){CaxtonUtils.asset("//use.fontawesome.com/releases/v5.5.0/css/all.css")}CaxtonUtils.watchScroll(".cxp-scroll",....

    Based on that, it looks like the Caxton plugin you have installed is making that call, so it’s best to reach out to their support team directly to see if it’s possible to avoid that.

    Thread Starter mh811

    (@mh811)

    Thanks @senff, I’ll reach out to them.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove FontAwesome loading All.CSS’ is closed to new replies.