Archived topic
How to style a google font
5 replies · Started by Stewart on October 13, 2019
Is there a way to use a Google font in a specific instance, rather than having to use it throughout? For example, rather than style ALL H1 headings in Abril Fatface, I'd rather use that font for just one instance, the title of a widget that appears here and there throughout the site.
Hi there,
Which widget are you referring to?
The title Coming events?
Let me know :)
Yeah, that's the one-- I found a plugin called WP Google Fonts that does exactly what I want. It's a bit out of date so if you have a better solution I'd like to know!
I would just use this CSS:
.sidebar h2.splashy {
font-family: "Abril Fatface", display;
}
So you can just specify a Google font like that? Good to know!
Awesome :)