Archived topic
Font family not changing
5 replies · Started by takkularapsis on December 16, 2020
I try to change page-hero font to Saptisfy, Pacifico or Dancing Script. Nothing happens.
But if i change to Impact or Arial, it changes. Why?
Tryid this css -> font-family: Pacifico !important;
Hi there,
If a font is not selected in the Customizer for a specific heading then GP does not load them.
how are you adding those font files to your site?
I didnt realize how it worked. I just thought that cause i can change impact, arial, or another font i could just change it with css.
I only would need to change page hero part to another?
I have these directions: https://docs.generatepress.com/article/adding-local-fonts/
Is there any toher choice i can make than those?
Arial is a System Font - which means its installed in almost every device, which is why that one loads :)
Are you using all of the H1 to H6 headings - for example if you're not using the H6 heading you could set that to your Custom Font, GP will then make that request and load the font. You can then use your CSS to apply that to the Hero H1.
Ah, ok that makes sense.
And for your solution, why didnt i think of that, but of course i will do this :)
Great support again, thanks!
You're welcome