[Resolved] Google Font missing

Home Forums Support [Resolved] Google Font missing

Home Forums Support Google Font missing

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #292364
    Cristina

    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?

    #292366
    Tom
    Lead Developer
    Lead Developer

    Hi there,

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

    #292369
    Cristina

    No, I don’t.

    #292371
    Tom
    Lead Developer
    Lead Developer

    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.

    #292375
    Cristina

    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!

    #292423
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.