-
Hello,
To speed up my site, I followed your suggestion and loaded Google fonts locally.
“I would also highly recommend locally hosting the Google Fonts you’re using as this is contributing to the slow loading of your site as well. Reference: https://docs.generatepress.com/article/adding-local-fonts/”
1. The CSS is loaded via Appearance/Customize/Typography/Additional CSS and is rendering inline under source view.
2. The font files were uploaded to …/uploads/fonts/…
3. The font links are working and are accessible (see via link in the private section), but they are not rendering. The font is defaulting to ‘apple system’
4. Cache has been cleared
5. Google API has been turned off via Generate Blocks Pro
6. Fonts were removed and reinstalled via Appearance/Customize/Typography, but Google API was not toggled on
7. The PHP snippet was inserted via WPCodeCan you help? Thank you
-
Hi there,
All your font links with different font weights go to the same font file, it does seem to be making sense.
https://app.screencast.com/g09LbCooEtzmbCan you make sure the font files are correct?
-
Hi, I downloaded the woff files from Google. Google generates one file for italics and one for normal with different weighs. Here is the Google Fonts CSS sheet.
https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200;0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,200;1,6..12,300;1,6..12,400;1,6..12,600;1,6..12,700&display=swap%22%20rel=%22stylesheet
Good news:
I’ve resourced the individual woff files and Nunito is rendering now.Thank you!
-
HI there,
is this issue now resolved ?
-
Yes, thank you! I needed to source the WOFF files as Google’s font library issues an encrypted file with all the fonts combined and this seems to have been an issue.
-
The tool in our documentation where you can download the Google fonts does not have this issue, next time you can use that one to download the fonts 🙂
- You must be logged in to reply to this topic.