Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #951719

    Hello,
    I tried to get the google fonts loaded local, but it does not work.
    I read the following 2 threads:

    https://kriesi.at/support/topic/need-to-disable-google-fonts/
    https://kriesi.at/support/topic/disable-google-font-loading-via-google/

    And I did, what is described in this tutorial

    I did this:
    1. Get the fonts from google-webfonts-helper
    2. Extract the zip-package and load the fonts to my server
    3.Use the css from google-webfonts-helper with applied path reference (absolute path) and put it into my style.css of my child theme.
    4. Put the php-code-snippet from this thread into my functions.php of my child theme.

    I think, this should work, but it doesn’t.
    In the console of my browser I notice that the fonts are loaded from google. Same as gmetrix tells me.
    My wordpress uses cache-enabler and autoptimize plugin with settings that don’t interfere each other. Cleaned the caches before testing.
    If I look into the source code in the used autoptimize file I can’t find any link to google. The browser console tells me the link comes frome some stylesheet.

    Please give me some advice to solve this.

    Best regards,
    lebenspraxis

    • This topic was modified 6 years, 7 months ago by lebenspraxis. Reason: links not correct
    #952375

    Hey lebenspraxis,

    > If I look into the source code in the used autoptimize file I can’t find any link to google.

    That means that you see the old code and it has not been updated, that is why you have such a problem.

    Best regards,
    Basilis

    #952401

    Hey Basils,

    sorry, I can’t understand what you mean. I am aware that there is no link to google in the file created by autoptimize. I wrote that. But if you use the browser console or do a speed test by gmetrix you see that google is adressed and that the fonts are loaded from google not from my own webspace.Also I deleted the cache of autoptimize and cache enabler many times. For me it seems that the php-code from the support forum does not work and google fonts are’nt disabled. But maybe I misunderstand something. How can I get this work and load the fonts properly from my own wbspace?

    Best regards,
    lebenspraxis

    #953097

    Hi lebenspraxis,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #953365

    Hi Victora,

    sure, I give you full access to my wordpress and to the ftp-server too.
    Meanwhile the issue has changed a little bit. If I test the site fom gtmetrix or pingdom it seems that the google fonts are loaded correctly from my server and not via google itself. But! If I have a look into the browser console, I see that somehow both is happening. Fonts are loaded from my server, also via connection to google!
    I don’t konw what is happening here and why the fonts in a way are loaded from my server now. For me it seems I didn’t change anything that could be the reason for that. Somehow strange for me. by the way: Before testing with the browser console I deleted the browser cache.

    Best regards,
    lebenspraxis

    #954266

    Hi lebenspraxis,

    Best regards,
    Victoria

    #954549

    Hi Victoria,
    this is so strange!!! I don’t know what happens. Yes, now I also see all the fonts loading from my server and no link to Google. The connection to Google has gone now without doing anything I know about. Yesterday, still the link to Google showed up in the browser console. The page speed score of gtmetrix meanwhile had gone down to 79 when the fonts were loading both from my server and also from Google. Before it was about 95. Now it’s 99!
    I don’ know why … but that’s what I wanted and I am happy. Serving the fonts from one’s own server is probably the better way for europe because of the european General Data Protection Regulation starting in Germany by the May, 25th.

    Thank you for your support!

    Best regards,
    lebenspraxis

    #955019

    Hi lebenspraxis,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #955272

    Hi Rikard,

    you can close the topic.

    Thank you all for your support!

    Best regards,

    lebenspraxis

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