Archived topic
Adding all Google Fonts
3 replies · Started by Ben on October 13, 2017
Hi Tom,
perfect theme, perfect support! I read all the questions and comments about adding Google Fonts but I am not sure if my steps are correct - sorry, for this "adding Google Fonts" question again.. :)
I would like to add font family „Terminal Dosis“ and I did the following steps:
-I installed and activated the child-theme
-I added your code to functions.php (child -theme)
/** Showing all available Google Fonts */
add_filter(... return 'all';}
But I cannot find all available Google Fonts in the drop down GP list. What did I do wrong regarding child-theme & functions.php?
I know it doesn’t upload any fonts, it simply adds them to the list in the Customizer, then makes the call to Google if they’re selected.
I would appreciate a feedback. Many thanks in advance.
Hi there,
This should work: https://docs.generatepress.com/article/customizing-the-google-font-list/#adding-your-google-font-to-the-list
Or have you already done that but it's not working?
Hi Leo,
thanks for quick feedback! Yes, I have already added your GP code "Showing all available Google Fonts" below
to functions.php (child-theme). But I am still missing all google fonts (list in the Customizer) ?
Many thanks!
add_filter( 'generate_number_of_fonts','tu_show_all_available_google_fonts' );
function tu_show_all_available_google_fonts() {
return 'all';
}
Check out the Adding your Google Font to the list link I provided above.