• leeleeiam

    (@leeleeiam)


    I am trying to change the font for <h5> and <h6> only. Maybe I’m not using the right search terms, but I can’t find any information on doing this. I’m using Namaha theme. I’d appreciate help with this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This depends on your theme, and where and how these tags are used on your site.

    If you can provide the URL of a page on your site with these tags in use, I’m sure I can give you custom CSS to do this. Also, what font do you want to use?

    Moderator bcworkz

    (@bcworkz)

    George is right, it depends on your theme, but generally speaking you could add this to the Additional CSS customizer section:

    h5, h6 {
      font-family: "Times New Roman", Times, serif;
    }

    Use whatever font list you want. If it’s not a common system font, you’ll need additional code to load a web font. The above CSS will affect every h5 and h6 header in your site, unless there is more specific CSS that overrides it.

    The !important modifier can override some overrides. There’s no way to override element style attributes other than to alter the attribute itself.

    If you want to alter the font of headers in a specific context, sharing an URL like George suggested is the best path forward.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different font for and only’ is closed to new replies.