Return to Support

Where in CSS is h2 for body content?

Home Forums Graphene WordPress theme Support Where in CSS is h2 for body content?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5995
    jrothra
    Member

    I’ve looked and I’m apparently missing it. I see it for comments, background images (I think), and others… but what about when I use <h2> . . . </h2> in the body of a post or page? I want it to be bold without affecting the other h2’s. Where do I find that in the CSS?

    #33036

    Don’t edit theme files. Use Custom CSS feature instead.

    Try:

    .content-main h2 {style elements;}

    #33037
    jrothra
    Member

    The only theme files I edit are those for the child theme. Sometimes the custom CSS section doesn’t do it, hence the child theme’s stylesheet. Besides, I was looking in the main theme’s CSS to see which element I needed to edit in the custom CSS section.

    I added this to the custom CSS and it made no difference in the H2’s in the main body:

    .content-main h2 {
    font-weight:bold;
    }

    From what I can tell, the text isn’t bold, unless the standard weight version is razor thin (which I doubt).

    #33038
    jrothra
    Member

    Just to test if the font was already bold (hence no change), I manually added <strong> . . . </strong> around the h2. Here’s the difference:

    H2-Issues.jpg

    I want the entire site to make all h2’s in the body (not comments or elsewhere) bold like that without me having to manually do it each time.

    #33039
    Josh
    Member

    Try this in your child theme css:

    .entry-content h2 {
    font-weight: bold;
    }

    #33040
    jrothra
    Member

    Josh,

    That did it! Perfect, thank you! 😀

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.