Home>Support>Duplicate font awesome Url causing site slowdown as per GT Metrix

Duplicate font awesome Url causing site slowdown as per GT Metrix

I’m using the Sydney Pro Theme from A Themes and your Widgets Bundle. While testing my website for speed, this issue came up with font awesome: “Serve resources from a consistent URL.” The guys over at AThemes came up with a solution, but it removed the social icons and other decorative elements from the site, so that wasn’t ideal. Just wondering if you might have a way to fix this without altering anything cosmetically? The home page, footer and sidebar all use the Site Origin widgets. Thanks in advance for your time. Image:

Website: The Doglady’s Den

This is a free community support forum. Replies are not guaranteed. If you need professional email support, please purchase a SiteOrigin Premium license.

  1. 1 year, 1 month ago Debbie D.

    Image didn’t post? Here’s a link: GT Metrix Inconsistent URL

  2. 1 year, 1 month ago Alex S Hi, I Work Here

    Hi Debbie,

    You’ll need to use PHP and CSS to alter this. If you aren’t using a child theme, please install Code Snippets and then please navigate to WP AdminSnippetsAdd New. Add the following PHP and then click Save Changes and Activate.

    function sow_remove_fa( $content ) {
    	wp_dequeue_style( 'siteorigin-widget-icon-font-fontawesome' );
    	return $content;
    add_action( 'the_content', 'sow_remove_fa', 100 );

    Then please add the following CSS to WP AdminAppearanceCustom CSS:

    .sow-icon-fontawesome {
    	font-family: 'sow-fontawesome';
    	display: inline-block;
    	speak: none;
    	font-style: normal;
    	font-weight: normal;
    	font-variant: normal;
    	text-transform: none;
    	line-height: 1;
    	-webkit-font-smoothing: antialiased;
    	-moz-osx-font-smoothing: grayscale;
    .sow-icon-fontawesome[data-sow-icon]:before {
    	content: attr(data-sow-icon);

    You might also need to install the SiteOrigin CSS Editor.

  3. 1 year, 1 month ago Debbie D.

    Thanks for the response. Unfortunately, adding that code to my child theme’s function.php file completely removed the SiteOrigin widgets from the home page, so I can’t tell what effect the CSS had. Is the SiteOrigin CSS Editor better/different from the native WordPress one? I already have too many plugins…

  4. 1 year, 1 month ago Alex S Hi, I Work Here

    Hi Debbie,

    That’s odd – I can’t seem to replicate that. Would it be possible for you to send me an export for your home page? To do this please open up your home page editor and click the Layout button in the Page Builder toolbar. Then click import/export and then click download. Please upload the export to a 3rd party file hosting site such as teknik.io.

    To answer your other question, yes. SiteOrigin CSS is a visual CSS editor. You don’t have to use it use it.

  5. 1 year, 1 month ago Debbie D.

    Hi Alex;

    Okay, I followed your instructions and this is the link:

    Home Page

    This is without your code added in because it only left the slider header in place.

    Thanks again!

  6. 1 year, 1 month ago Alex S Hi, I Work Here

    Hi Debbie,

    Thanks. I’ve updated the previously provided code. Please try the updated version.

  7. 1 year, 1 month ago Debbie D.

    Thank you so much, Alex! Duplicate URLS are gone and my pagespeed score has improved from a “B” to an “A”. The social media buttons and the icons on the call to action buttons had to be changed, but that’s a minor adjustment. I really appreciate you taking the time to fix this. Thanks again!

  8. 1 year, 1 month ago Alex S Hi, I Work Here

    Hi Debbie,

    Great to hear mate! :)

    Regarding your social media buttons and icons, did you add the provided CSS? I ask as that should fix the issues with those as a result of removing these icons.

  9. 1 year, 1 month ago Debbie D.

    Yes, I did add the CSS, but the icons wouldn’t show – only small, blank squares. I was able to substitute other ones in their place, though. From what I understand, the font-awesome ones cause less load, but I’m happy with the increase in site speed, regardless. Cheers!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More