Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #960989

    Hi!

    First of all, I don’t use Google Maps. The api seems to load a Google font anyway. uMatrix logs this:
    https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,regular,700%7CRoboto:regular&subset=latin%2Clatin-ext

    I spent quite some time on this now. Would be great, if anyone could help me out :)

    Is there an easy way to disable the google maps api? I want my website to be GDPR compliant.

    Thanks in advance!

    Harald

    #961518

    I would also like to avoid reloading fonts from googleapis.com. This way the user’s browser connects to google. The IP address of the user is a personal data, which we would then pass on to google. We would have to cover this in our privacy policy. I do not want to do this.

    I would like to download the google fonts and be able to host them myself.

    So I would like a checkbox:

    [ ] Do not use google API
    and a configuration options:
    Provide the URL, where the google fonts can be found: ____________

    Thanks a lot
    Cornelius

    #961912

    Hi,

    Please try adding this at the very end of your themes/child theme’s functions.php file:

    
    // Disable google fonts
    
    add_action( 'init', 'enfold_customization_switch_fonts' );
    function enfold_customization_switch_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }
    
    // End function
    

    For more information about adding custom script please check this link.

    Best regards,
    Vinay

    #962028

    Hi Vinay!

    Thanks for your reply! The provided solution didn’t change a thing, unfortunately.
    It seems like a google API (I think it’s google maps) loads the font, though I don’t use any google API.

    Thanks for your support!
    Harald

    #964489

    Hi again!

    Has anyone any further thoughts about how to get rid of that font loading?

    Thank you very much for your ideas in advance!

    Harald

    #965320

    Hi Harald,

    Could you post a link to the page in question so that we can take a closer look please?

    Best regards,
    Rikard

    #965534

    Hi Rikard!

    Thanks for your reply! Yes, it’s https://www.harald-dvorak.at/
    The problem seems to be the start page, according to my umatrix log.

    Best regards and thank you for your support!

    Harald

    #965540

    Harald… if you check your source code, you will see that layer slider is loading google fonts and you have a dns prefetch for fonts.googleapis.com in there as well.

    #966097

    Thank you very much! That‘s it!
    Found the corresponding options for the layout slider!

    Problem solved!

    Cheers, Harald!

    #966812

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Can't get rid of google font loading’ is closed to new replies.