WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how do I change the h2 font size? (5 posts)

  1. uellee
    Member
    Posted 2 years ago #

    I would like to change the h2 size on my page but I have had no luck through any methods I have found.

    I imagine there is probably something i can add to style.css in my child theme that will change the size of every h2.

    here is my page-

    http://www.bodysculptinglafayette.com/questions-and-answers/

    thank you

  2. vtxyzzy
    Member
    Posted 2 years ago #

    I think you can change the size with this added to the END of the child style.css:

    h2 { font-size: 28px !important; }

    Adjust the 28px as needed.

    You may find that you need to increase the line-height to get the proper spacing.

    This will affect every h2 on the page. Your theme distinguishes among h2 in various locations so you could adjust each of them separately. For the page heading:

    .type-page h2 { font-size: 28px; }

    For the numbered entries:

    .entry h2 { font-size: 14px; line-height: 1.1em; }

    For comment headings:

    .comment h2 { font-size: 18px; }
  3. uellee
    Member
    Posted 2 years ago #

    Thanks a bunch! It worked great but now that I made it smaller I would like to make it bold. Can you please show me how I need to modify this to make it bold now.

    .entry h2 { font-size: 14px; line-height: 1.1em; }

    thanks

  4. vtxyzzy
    Member
    Posted 2 years ago #

    Just add font-weight to the style:

    .entry h2 {
       font-size: 14px;
       line-height: 1.1em;
       font-weight: bold;
    }
  5. uellee
    Member
    Posted 2 years ago #

    perfect. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic