• Resolved kitchendates

    (@kitchendates)


    Hi Daan,

    I’ve just started using your OMGF plugin to improve my website, but it seems like my fonts are still being loaded from Google. Could you please assist me with this? I’m using Salient theme.

    Thanks,
    Rui

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Did you check ‘Remove Google Fonts’ under Advanced Settings?

    Did Auto Detect detect all fonts? If so, which theme fonts are you using?

    Hi.

    It seems i have the same problem.
    I’m using the Customizr Theme.

    I have downloaded the fonts via “Auto Detect” and “Download Fonts” (16 fonts found) + “Generate Stylesheet” (tried this once with and without checked “Preload”) and then i checked “Remove Google Fonts (experimental)” and saved this changes.

    If i reload the complete page via CTRL+F5 and check the code i found the same lines as before:

    <link rel="dns-prefetch" href="//fonts.googleapis.com">

    and

    /* <![CDATA[ */
    var CZRParams = { ... ,"preloadGfonts":"","googleFonts":"Amatic+SC%7CJosefin+Sans:700"};
    /* ]]> */

    Or have I misunderstood something?

    Best Regards
    Tachoron

    • This reply was modified 4 years, 10 months ago by tachoron.
    • This reply was modified 4 years, 10 months ago by tachoron.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi Tachoron,

    Please provide a screenshot of the fonts that were detected.

    The 1st snippet of code is a preload link, which isn’t removed by OMGF. You should find out which plugin is adding this (btw, if you’re using Autoptimize, set Google Fonts option to ‘Remove’, that should remove this line.)

    The 2nd snippet of code you provided looks lik a Web Font Loader snippet. Which loads Google Fonts asynchronously, that’s why OMGF can’t detect them: they’re loaded after most of the page is loaded.

    https://ibb.co/SyZtkRv

    I have now enabled “Preload Google Fonts” in my Theme Settings:

    The Code has changed:
    <link href="//fonts.googleapis.com/css?family=Poppins:regular%7CPoppins:500&display=swap" rel="stylesheet" id="sek-gfonts-local-and-global" as="style">

    But now i got the following message:
    Auto Detect completed successfully, but no Google Fonts were found.

    • This reply was modified 4 years, 10 months ago by tachoron.
    • This reply was modified 4 years, 10 months ago by tachoron.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Great! Happy there’s a setting.

    It’s weird, since only Poppins is requested. Not Josefin Sans and the others.

    It looks like a non conventional method. WordPress itself adds stylesheets with an id ending with ‘-css’.

    Customizr theme, you said? I’ll have to do some testing. Could you send me an export of your theme settings, using my contact form?

    I send it.
    I hope this is the correct Theme Settings file you need (must rename it to *txt).
    Otherwise send me a short info from where i can export it.

    Hi Daan,
    Did you receive my Settings and could you identify the problem?

    I’have now checked it for my self and the following line only occurs for the Poppins font.

    <link href="//fonts.googleapis.com/css?family=Poppins:regular%7CPoppins:500&display=swap" rel="stylesheet" id="sek-gfonts-local-and-global" as="style">

    The other used Google Fonts (Amatic SC & Josefin Sans) seemed to be removed successful.
    The following line does only exist if i have “Remove Google Fonts” disabled. Otherwise it is removed (as expected):

    <link rel="stylesheet" id="czr-gfonts-css" href="//fonts.googleapis.com/css?family=Amatic+SC%7CJosefin+Sans:700&display=swap" type="text/css" media="all">

    Best Regards
    Tachoron

    • This reply was modified 4 years, 10 months ago by tachoron.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Sorry, yes. I haven’t gotten around to it yet.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi @tachoron,

    I’ve sent you an email.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fonts still loading from Google’ is closed to new replies.