Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #263357
    Wilfried
    Participant

    Does the theme load google fonts or are the fonts stored locally? When I look into resources (chrome) I cannot find fonts.googleapis.com.
    kind regards
    Wilfried

    #263364
    Skandha
    Participant

    @wfranke: Hello Wilfred,
    The Google Fonts are loaded from https://fonts.googleapis.com and are not store locally.

    Kind Regards,
    Skandha

    #263654
    Wilfried
    Participant

    Hi Skandha,
    How can I stop google fonts loading in the theme?

    Any help much appreciated

    Wilfried

    #263758
    Pratik
    Keymaster

    Hi @wfranke,

    Please use plugin: https://wordpress.org/plugins/host-webfonts-local/

    This will help you host google fonts locally.

    #263817
    Wilfried
    Participant

    Thank you so much for the suggestion. I prefer to do it manually. How do I check that the theme does not load the fonts via fonts.googleapis.com anymore?

    Do I have to add this in the functions.php of the child theme?

    // Removing Google Fonts from theme
    function dequeue_google_fonts_style() {
    wp_dequeue_style( ‘adonis-fonts’ );
    }
    add_action( ‘wp_print_styles’, ‘dequeue_google_fonts_style’ );

    // Removing Site Icon feature from theme
    function remove_styles_sections($wp_customize) {
    $wp_customize->remove_control(‘site_icon’);
    }
    add_action( ‘customize_register’, ‘remove_styles_sections’, 20, 1 );

    kind regards
    Wilfried

    #263845
    Pratik
    Keymaster

    Hi Wilfried,

    Just doing the first part will remove the font from google.

    Second part of code looks like it is relater to site icon.

    #264029
    Wilfried
    Participant

    Hi Pratik,
    thank you so much for the answer. I still have one question. How do I check that the theme does not establish a connection to fonts.google.com? I even can’t see it before using the fonts locally.
    kind regards
    Wilfried

    #264032
    Pratik
    Keymaster

    Hi Wilfried,

    Searching for https://fonts.googleapis.com in your site source should determine if google fonts are loaded or not. If you post your site url, I can check it for you.

    #264040
    Wilfried
    Participant

    That was really a quick answer. Here is the url: https://goldenhill.co.za/

    #264048
    Pratik
    Keymaster

    I checked and google fonts are not being loaded.

    #264050
    Wilfried
    Participant

    Hi Pratik,
    thanks for checking. I got the same result, but where are the fonts coming from? Skandha told me the fonts are loaded from fonts.googleapis (reply #263364). I’m confused now.

    #264055
    Pratik
    Keymaster

    Hi Wilfred,

    He meant, if you load google fonts, it comes from theme. But in your site, there is no google font being loaded.

    #264057
    Wilfried
    Participant

    Ah OK. Sorry for asking again. Where does catch kathmandu load the fonts from? Or are the fonts stored in the theme and they are on my server?

    #264059
    Pratik
    Keymaster

    Currently, you are only using web safe fonts. So they are rendered by your browser. It is installed in your pc by default.

    They don’t usually need loading and have a fallback font as well, if your pc doesn’t have it.

    Is this what you wanted to know?

    #264062
    Wilfried
    Participant

    Yes, that is what I wanted to know. Thank you again for answering my questions so quick!
    kind regards
    Wilfried

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘google fonts’ is closed to new replies.