- This topic has 23 replies, 3 voices, and was last updated 2 years, 11 months ago by
Fernando.
-
AuthorPosts
-
March 27, 2023 at 8:55 pm #2584950
Andrew
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/March 27, 2023 at 9:10 pm #2584955Andrew
Oooh think I found it… Siteground optimisation.
*edit* no I didn’t … it’s back without the plugin
March 27, 2023 at 9:32 pm #2584961Fernando Customer Support
I see. Glad you found the cause, Andrew!
March 27, 2023 at 9:33 pm #2584962Andrew
Haha. You beat me with the reply before my edit. It’s still an issue…
March 27, 2023 at 9:41 pm #2584966Andrew
Now I look at it – it’s the Generateblocks (Pro) font call.
March 27, 2023 at 9:43 pm #2584968Fernando Customer Support
I see. Do you have anything on your Front page that’s using a Google Font?
March 27, 2023 at 9:55 pm #2584976Andrew
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?
March 27, 2023 at 11:25 pm #2585025Fernando Customer Support
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.
March 28, 2023 at 3:41 pm #2586288Andrew
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.
March 28, 2023 at 4:22 pm #2586315Ying
StaffCustomer SupportHi Andrew,
I ran a test for the test page, and the only font loaded is the Inter font.
https://www.screencast.com/t/XEEMtVgTThe 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!
March 28, 2023 at 4:39 pm #2586322Andrew
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.
March 28, 2023 at 6:03 pm #2586379Fernando Customer Support
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.
March 28, 2023 at 10:59 pm #2586557Andrew
Thanks. All plugins de-activated except GB, running Twenty-Twenty theme.
No errors logged. Problem persisted.March 28, 2023 at 11:29 pm #2586586Fernando Customer Support
I see. What version of GenerateBlocks are you using? Is it updated?
March 29, 2023 at 3:23 pm #2587903Andrew
Yes. Version 1.7.3.
I’ve made you a User if you’d like a look.
I need to reactivate plugins and themes. -
AuthorPosts
- You must be logged in to reply to this topic.