Archived topic
Google Font url malformed
23 replies · Started by Andrew on March 27, 2023
Hey there. I have a weird problem with the GP generated Google Font URL. The font family is missing from the query. It's also calling ALL variants. Customiser is set to Roboto, 300, regular, 700, 900.
GP Outputs:
` <link rel='stylesheet' id='generateblocks-google-fonts-css' href='https://fonts.googleapis.com/css?family=:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&display=swap' media='all'/>
Staging site is here for reference:
https://andrewv44.sg-host.com/
Oooh think I found it... Siteground optimisation.
*edit* no I didn't ... it's back without the plugin
I see. Glad you found the cause, Andrew!
Haha. You beat me with the reply before my edit. It's still an issue...
Now I look at it - it's the Generateblocks (Pro) font call.
I see. Do you have anything on your Front page that's using a Google Font?
The whole page is loading Inter. The GP script (id="generate-google-fonts-css") is loading correctly but the Generateblocks one (id="generateblocks-google-fonts-css") is malformed.
I don't know where GB even loads its own fonts?
I see. That shouldn't be loading if no Google Font is loaded through GenerateBlocks.
Can you check if any GenerateBlocks Block has a Google Font set?
Example: https://share.getcloudapp.com/YEueRkeA
If there's none try:
a) Choose Inline Embedding for the CSS Print Method in Settings > GenerateBlocks.
If a) doesn't work:
b) Regenerate your CSS files in Settings > GenerateBlocks.
I've narrowed it down to this block... (edit - There may be others)
https://andrewv44.sg-host.com/test/
There is no typography applied.
I tried (a) above, no luck. Couldn't find (b) - no Generateblocks in settings, could not find Regenerate CSS in Generateblocks -> Settings either.
Hi Andrew,
I ran a test for the test page, and the only font loaded is the Inter font.
https://www.screencast.com/t/XEEMtVgT
The request of the Inter font is by the font family set in the customizer for body/button etc...
Let me know if I miss anything!
Yes thats correct. Generatepress is loading the font correctly.
Generateblocks, however, is throwing a broken link to the Google font sever. This is clearly not good for SEO.
Can you try #1 here to debug: https://docs.generatepress.com/article/debugging-tips/
It's recommended to backup your site before proceeding with this.
Thanks. All plugins de-activated except GB, running Twenty-Twenty theme.
No errors logged. Problem persisted.
I see. What version of GenerateBlocks are you using? Is it updated?
Yes. Version 1.7.3.
I've made you a User if you'd like a look.
I need to reactivate plugins and themes.