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
Image didn’t post? Here’s a link: GT Metrix Inconsistent URL
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.
Then please add the following CSS to WP AdminAppearanceCustom CSS:
You might also need to install the SiteOrigin CSS Editor.
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…
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.
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!
Hi Debbie,
Thanks. I’ve updated the previously provided code. Please try the updated version.
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!
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.
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!