Support » Fixing WordPress » how do I change the h2 font size?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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; }

    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

    Just add font-weight to the style:

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

    perfect. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how do I change the h2 font size?’ is closed to new replies.