• Resolved gw808092

    (@gw808092)


    Hello.

    I was looking if i can change the headline color on post.

    e.g
    H2 text – to be red.
    Other text remains default.

    Is this possible?
    Any snippet code to do this?

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

    (@bensibley)

    Thanks for using Startup Blog!

    You can change the color of h2 elements on your site with the following CSS:

    h2 {
      color: red;
    }

    Please copy & paste the code above into the “Additional CSS” section in the Customizer (Appearance > Customize), and it will take effect right away.

    Thread Starter gw808092

    (@gw808092)

    Thanks. It works……. but What about H3 and H4?

    Theme Author Ben Sibley

    (@bensibley)

    Oh sorry, I misunderstood. Here is an updated snippet for affecting h2, h3, and h4 elements:

    h2, h3, h4 {
      color: red;
    }
    Thread Starter gw808092

    (@gw808092)

    Thank you so much…… All works fine…. Cheers

    Thread Starter gw808092

    (@gw808092)

    What if I want to make them bold?

    Theme Author Ben Sibley

    (@bensibley)

    You can add a font-weight property as well, like this:

    h2, h3, h4 {
      color: red;
      font-weight: 700
    }

    The scale is from 100-900 in 100 increments, and 700 is the value most commonly used to make fonts bold.

    Thread Starter gw808092

    (@gw808092)

    Awesome ??….. Thanks ??

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Possible To Change H2 to H4 Color?’ is closed to new replies.