- This topic has 9 replies, 3 voices, and was last updated 2 years, 11 months ago by
Ying.
-
AuthorPosts
-
March 28, 2023 at 2:49 pm #2586257
Jessica
Hi there! For some reason I can’t get my Google fonts to work on a client’s site – they were working yesterday, and they appear set up correctly in the Customizer still – I even tried deleting the fonts and re-adding them (via the Customizer just by Add Font). I deactivated Wordfence and for some reason the fonts went away after that? now it’s just showing generic serif and sans serif fonts. Would love any help! Site is behind a coming soon page so I’ll add creds below. Thanks so much for any guidance!!
March 28, 2023 at 4:13 pm #2586311Ying
StaffCustomer SupportHi Jessica,
Upon first glance at your site, it appears that the fonts are loading correctly.
Any specific section I should be looking at?
let me know!March 28, 2023 at 5:19 pm #2586354Jessica
Is there any way to send a screenshot? The set fonts are Mulish and Lora, and neither one is showing up for me. Oddly they appear fine in the editor, but on the front-end, they’re generic system fonts for serif and sans serif. I’ve cleared my cache and still see it.
March 28, 2023 at 6:15 pm #2586384Fernando Customer Support
Hi Jessica,
Here’s an article with regards to uploading screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots
For clarity, can you send a screenshot of how it looks like from your end?
March 28, 2023 at 6:26 pm #2586393Jessica
Thanks for that! https://imgur.com/a/g32M2Wl and https://imgur.com/a/NVWECeu It’s throughout the whole site.
March 28, 2023 at 6:46 pm #2586410Fernando Customer Support
Can you try adding those two fonts locally?: https://docs.generatepress.com/article/adding-local-fonts/
Note: Adding them locally is also better for performance.
March 31, 2023 at 8:18 am #2590826Jessica
Yay that worked! I’ve avoided this with Google Fonts since it’s so much easier to not locally add them, but I’ll do this going forward. One question – even with that PHP added in, I still couldn’t add the TTF files. Are they important/do I need them? I left the CSS for them but there’s no file they’re referencing. Any tips around this? I put the PHP in via Code Snippets and even tried another TTF specific code I found via Google, but no luck either way, the ttfs still always got rejected. Thanks!!
March 31, 2023 at 11:08 am #2591069Ying
StaffCustomer SupportHi Jessica,
If you’ve uploaded .woff file successfully, then it should be ok.
You can use a tool like this to check the browser compatibility for different font files.
As you can see most browsers support .woff.
https://caniuse.com/?search=woffApril 1, 2023 at 8:12 am #2592132Jessica
Okay great, thanks y’all!
April 1, 2023 at 4:53 pm #2592508Ying
StaffCustomer SupportNo Problem, glad to help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.