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?
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:
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.