Archived topic
Local fonts and child theme
3 replies · Started by Jenny Dupuy on February 15, 2022
Hi,
I want to add local fonts (Google fonts but also other fonts).
For the moment I don't have a child theme, I just added some css lines in the Additional CSS in the Customizer, and I use two elements to slightly modify the header of some pages.
I wanted to know if for adding local fonts, it is necessary to create a child theme or if there is another way?
Thanks for the help.
Hi there,
personally i always use a child theme for local fonts - however this doc explains how you can store the fonts in the Media Library without using a child theme - see here:
https://docs.generatepress.com/article/adding-local-fonts/#uploading-our-font
Hi,
Personally I prefer to store the fonts elsewhere than in the media library so I will rather make a child theme.
It's this sentence (Note: If you’re comfortable with uploading files to your server via FTP, you can skip this step and simply upload your font files to your child theme.) in https://docs.generatepress.com/article/adding-local-fonts/#uploading-our-font that put me in doubt, I had the impression that we couldn't do otherwise.
Thanks for the quick answer, as usual it's nice.
Glad to be of help!