• Resolved migochi

    (@migochi)


    Hi Ben.

    I wanted to change all fonts on the site to Halvetica and I used code like this:

    .site-title a {
    font-family: \'Helvetica\', sans-serif !important;
    }
    
    h1.excerpt-title {
    font-family: \'Helvetica\', sans-serif !important;
    }
    
    h2.excerpt-title {
    font-family: \'Helvetica\', sans-serif !important;
    }
    
    h3.excerpt-title {
    font-family: \'Helvetica\', sans-serif !important;
    }
    
    h4.excerpt-title {
    font-family: \'Helvetica\', sans-serif !important;
    }
    
    body {
      font-family: \'Helvetica\', sans-serif !important;
    }

    title, menu, and casual text were changed but not text h1,h2,h3,h4

    Can you help me with that?

    Regards
    Natalia

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hey Natalia,

    Try adding the following CSS:

    h1,h2,h3,h4,h5,h6 {
      font-family: Helvetica, sans-serif !important;
    }

    I’m not sure if the editor here affected your code at all, but you don’t need the escaped apostrophes like this \’ around Helvetica. When the name of the font is two or more words you can surround it with quotes to make it work, but for single word fonts like Helvetica, no quotes are needed.

    Thread Starter migochi

    (@migochi)

    It works great!
    thank you very much Ben!

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome ??

    Thanks, I used this information too!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Font style h1,h2,h3,h4’ is closed to new replies.