Site logo

Archived topic

Google Font missing

5 replies · Started by Cristina on March 15, 2017

Viewing posts 1–6 of 6

Hi!

I have just updated the theme and the GP Premium, and I´ve realized that two titles that use Lobster font applying css, appear with the regular font. I had it for several weeks working, using this:

.headingrem {
   font-family: Lobster;
}

Is it an update problem?

Hi there,

Did you have "Lobster" selected as a font anywhere in the Typography panel inside the Customizer?

No, I don't.

Do you know if it was selected in there prior to the update?

In order for Google Fonts to work, there has to be a meta link added to your wp_head hook calling the font.

For example, Lobster would require you to add this into the wp_head hook in GP Hooks:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">

GeneratePress does this for you, but only if the font is selected inside the Typography panel.

I had it once, but then I changed it, set it only with css, and it worked for months. Anyway, I included the code you gave me in the wp_head hook, and it works again :)

Thank you very much!

You're welcome :)

This archived topic is closed to new replies.