Newspaper change font in text column

Posted in: Newspaper
Post count: 3

Hi, I’m just trying to change the font of single words in tag-div composer “column text”.
I did this:
– create a class called “font-change” in my H1 tag
– used the span tag for the only word I want to change the font
<h1 class="font-change">Hi my name is <span>Fede</span></h1>.
– in custom css:
.font-change span{
font-family: Sofia;
}

I want that “Sofia” font only on one word; it’s a google font, and I have google fonts activated from my theme panel.
This cose works for Verdana, Helvetica, Times ecc, but not for other google fonts.
Is there something wrong? Have I to enable something from the theme panel?

Post count: 20688

Hi,

The font has to be loaded first, or it will not work. If the font is not used anywhere in the page or website it will not be loaded, so applying it with CSS won’t work.

You could either download and load it in the theme panel custom fonts section, if this is possible to do, and then apply it with CSS
https://forum.tagdiv.com/font-customization/
Or load it for an element in the theme panel font settings. Then it should work.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.