- This topic has 14 replies, 2 voices, and was last updated 1 year, 1 month ago by David.
June 17, 2020 at 9:25 pm #1332081Joel
I’ve had a recurring problem with google fonts not loading and causing 400 errors on a number of pages for my site. I don’t use google fonts and only use the system fonts.
As far as I know, all font options are set to system fonts (I went through and checked with ‘customise’).
I have a few pages that use Elementor, but the fonts within Elementor are set to system fonts, too.
Basically, I’m not using any non-system fonts on my site at all. I have turned off any options to optimize loading of google fonts and don’t think I have any widgets that should use google fonts.
Please note, this only happens on some of my pages, not all of them. I’ve yet to find a common link between the pages that might be causing this.
Here are some of the pages affected with GT Metrix reports to illustrate the problem further:
These fonts are also causing ‘add expires headers’ issues in the YSlow report.
Do you know of any way to remove these fonts at all as I don’t use them and they’re throwing up errors on many pages?
ThanksJune 17, 2020 at 11:23 pm #1332138Joel
It looks like I have this CSS loading the fonts –
<link rel=”stylesheet” id=”generate-fonts-css” href=”//fonts.googleapis.com/css?family=Droid+Serif:regular,italic,700,700italic” type=”text/css” media=”all”>
But I have no idea why or how to remove it.June 18, 2020 at 1:58 am #1332287Joel
Would it be advisable to preload these fonts? If so, any idea how I can do that?June 18, 2020 at 2:03 am #1332290DavidStaffCustomer Support
looks like a font was selected for the Top Bar.
Temporarily add a widget to the Top Bar. Then you can select Customizer > Typography > Top Bar – check there to see if a google font is selected.June 18, 2020 at 2:22 am #1332317Joel
Hi, I tried that and the Droid font was selected for the top bar. I changed it to Helvetica and then removed the widget.
I’ve cleared the cache and reloaded the page but the 2 font errors still seems to be there, however.June 18, 2020 at 2:43 am #1332345DavidStaffCustomer Support
Have you tried clearing and disabling your cache plugins?
If still an issue then try disabling Google requests using the PHP Snippet here:June 18, 2020 at 8:12 am #1332861Joel
I’ve added those snippets. I’ll see if it makes any difference and get back to you in the morning.
ThanksJune 18, 2020 at 6:29 pm #1333418Joel
Hi, I’ve checked this morning and the errors are still appearing, even after adding both of those snippets. Any other ideas?June 19, 2020 at 1:11 am #1333663DavidStaffCustomer Support
In the <head> of your site is this broken request:
<link href="//fonts.googleapis.com/css?family=:600" rel="stylesheet">
This is not added by the theme. Have you added Fonts using any other method such as a Hook, a function or a plugin ?June 19, 2020 at 1:18 am #1333671Joel
I think they were added by OMGF in the past, but I no longer have that plugin installed.
Is it easy to remove this?
ThanksJune 19, 2020 at 3:08 am #1333795DavidStaffCustomer Support
If that is the only plugin / function you have added in regards to fonts then it may be worth checking with the plugin author.
Before doing that you may want to test by disabling all other plugins to see if one of them is causing it.
You can check whether that font request is being made on your site without GT Metrix. Simply Right Click > Inspect the Page. In the Console you will see Red Errors and it will be listed there.June 19, 2020 at 8:22 am #1334249Joel
Looks like it was Ultimate Addons for Gutenberg that was causing the problem. Thanks for the help. I’ll see if they can sort it out.June 19, 2020 at 8:25 am #1334257DavidStaffCustomer SupportJune 19, 2020 at 8:25 am #1334260Joel
Thanks for all your help.June 19, 2020 at 8:27 am #1334267
- You must be logged in to reply to this topic.