Archived topic
Using Custom Font
1 reply · Started by Milos on March 8, 2021
I'm tying to use a cursive font on the Generatepress site the same way we currently use it on the existing site, right below the hero image. (The text-shadow is just how we're using it, but that part is working fine and unrelated to the problem).
I'm a bit miffed at what could be the problem, since importing the font-face works the same way as on the existing site. Is there something that perhaps GeneratePress is doing to not allow it to happen?
@font-face {font-family: XXX; src:url([URL]XXX.woff);}
.cursive {
font-family: XXX;
text-shadow: 1px 1px 2px #636363;
}
Hi there,
If it isn't working, it's possible that it wasn't imported properly.
Here's an example of how to import a font.
https://docs.generatepress.com/article/adding-local-fonts/#using-font-face