Site logo

[Support request] Google Font url malformed

Home Forums Support [Support request] Google Font url malformed

Home Forums Support Google Font url malformed

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #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&#8217; media=’all’/>

    Staging site is here for reference:
    https://andrewv44.sg-host.com/

    #2584955
    Andrew

    Oooh think I found it… Siteground optimisation.

    *edit* no I didn’t … it’s back without the plugin

    #2584961
    Fernando
    Customer Support

    I see. Glad you found the cause, Andrew!

    #2584962
    Andrew

    Haha. You beat me with the reply before my edit. It’s still an issue…

    #2584966
    Andrew

    Now I look at it – it’s the Generateblocks (Pro) font call.

    #2584968
    Fernando
    Customer Support

    I see. Do you have anything on your Front page that’s using a Google Font?

    #2584976
    Andrew

    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?

    #2585025
    Fernando
    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.

    #2586288
    Andrew

    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.

    #2586315
    Ying
    Staff
    Customer Support

    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!

    #2586322
    Andrew

    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.

    #2586379
    Fernando
    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.

    #2586557
    Andrew

    Thanks. All plugins de-activated except GB, running Twenty-Twenty theme.
    No errors logged. Problem persisted.

    #2586586
    Fernando
    Customer Support

    I see. What version of GenerateBlocks are you using? Is it updated?

    #2587903
    Andrew

    Yes. Version 1.7.3.
    I’ve made you a User if you’d like a look.
    I need to reactivate plugins and themes.

Viewing 15 posts - 1 through 15 (of 24 total)
  • You must be logged in to reply to this topic.