Archived topic
Questions about adding Google Fonts
11 replies · Started by Yannick on May 30, 2017
Hi,
with this article it's really easy to add missing/needed google fonts to the Typography list.
https://docs.generatepress.com/article/customizing-the-google-font-list/
Thank you!! Perfect Theme, perfect support!!
What do you recommend to use? Code Snippet or ChildTheme? Activating all GoogleFonts or only the ones I need? Is there a difference in page speed depending on what I choose?
On the first homepage I created, I somehow added only one Google Font in the Typograph list. But I have no idea how I did it. I have no Code Snippet or other PHP plugin, I didn't add something in the function.php and also in SimpleCSS I find nothing...
Someone has an idea what and how I added this GoogleFont, so I can delete it and add it with CodeSnippet or my ChildTheme?
Hi there,
If you don't have tons of customization then Code Snippet should do. See this page for explanation when to use a child theme: https://docs.generatepress.com/article/using-child-theme/
There is no point activating all the fonts if you are not using them.
If you haven't added any fonts, then it's probably one of the most 200 popular google fonts that are activated by default?
Let me know if this helps.
Hi Leo,
I asked about "activating all fonts" for my own understanding, not so important :D I just wanted to know if this activation "uploads" all the fonts or does it only show all fonts which are anyway already uploaded?
No the font (Alegreya Sans SC) is not in the 200 popular google fonts. On my new page I was looking for the same font I used on my old page, this is how I realised that I have no idea how I did it on my old page. The font is also listed on the end of the typography list and not in alphabetic order like the rest of the fonts.
But also not so important. It works... not the best way if I don't know how... but it works out :D
Best wishes
Yannick
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 :)
Thank you for your explanation :)
No problem :)
Is Code Snippet the same a Simple CSS (which I have installed)? I ask this here because I want to add a Google font.
Thanks,
Hi there,
No they aren't the same.
Code Snippet is for adding PHP: https://docs.generatepress.com/article/adding-php/
Simple CSS is for adding CSS: https://docs.generatepress.com/article/adding-css/
Thanks, Leo!
No problem!
And what do you know? It works! LOL
Awesome :)