• Resolved northstatehillbilly

    (@northstatehillbilly)


    On the main blog page, the entry titles are H2 tags, but on both single post pages and other pages like About or Contact, they share an H1 tag.

    So when I added margin-bottom under the page title for About and my other pages, it also added a margin beneath the entry title on single post pages.

    Since non-blog pages don’t have entry meta beneath the titles, I need to increase the margin to make it look better. I can’t figure out how, though, without also adding some space between the single post title and entry meta.

    Any suggestions on how to only target non-blog pages?

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter northstatehillbilly

    (@northstatehillbilly)

    I added this to my CSS and it worked:

    .page h1.entry-title {
    margin-bottom: 26px;
    }

    The spacing between the post title and date isn’t affected. The margin is only added beneath page titles.

    Whew!

Viewing 1 replies (of 1 total)
  • The topic ‘How do you add a margin below entry titles ONLY on pages?’ is closed to new replies.