Tagged: fonts, google fonts
- This topic has 14 replies, 3 voices, and was last updated 2 years, 7 months ago by
Wilfried.
-
AuthorPosts
-
October 22, 2020 at 1:24 am #263357
Wilfried
ParticipantDoes 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
WilfriedOctober 22, 2020 at 2:10 am #263364Skandha
Participant@wfranke: Hello Wilfred,
The Google Fonts are loaded from https://fonts.googleapis.com and are not store locally.Kind Regards,
SkandhaOctober 25, 2020 at 1:41 am #263654Wilfried
ParticipantHi Skandha,
How can I stop google fonts loading in the theme?Any help much appreciated
Wilfried
October 25, 2020 at 9:12 pm #263758Pratik
KeymasterHi @wfranke,
Please use plugin: https://wordpress.org/plugins/host-webfonts-local/
This will help you host google fonts locally.
October 26, 2020 at 1:58 pm #263817Wilfried
ParticipantThank 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
WilfriedOctober 26, 2020 at 9:17 pm #263845Pratik
KeymasterHi Wilfried,
Just doing the first part will remove the font from google.
Second part of code looks like it is relater to site icon.
October 28, 2020 at 12:21 am #264029Wilfried
ParticipantHi 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
WilfriedOctober 28, 2020 at 12:51 am #264032Pratik
KeymasterHi 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.
October 28, 2020 at 1:20 am #264040Wilfried
ParticipantThat was really a quick answer. Here is the url: https://goldenhill.co.za/
October 28, 2020 at 1:37 am #264048Pratik
KeymasterI checked and google fonts are not being loaded.
October 28, 2020 at 1:53 am #264050Wilfried
ParticipantHi 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.October 28, 2020 at 2:04 am #264055Pratik
KeymasterHi Wilfred,
He meant, if you load google fonts, it comes from theme. But in your site, there is no google font being loaded.
October 28, 2020 at 2:29 am #264057Wilfried
ParticipantAh 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?
October 28, 2020 at 2:33 am #264059Pratik
KeymasterCurrently, 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?
October 28, 2020 at 2:48 am #264062Wilfried
ParticipantYes, that is what I wanted to know. Thank you again for answering my questions so quick!
kind regards
Wilfried -
AuthorPosts
- The topic ‘google fonts’ is closed to new replies.