• Hi there,

    iv’e trying to add margin-top to the header inside my page and article in generatepress free.

    Inside articles i’ve used succesfully the css-code:

    body.single .inside-article h2, body.single .inside-article h3 {
        margin-top: 50px;
    }

    … from: https://generatepress.com/forums/topic/add-margin-in-heading/

    But it won’t change it at my published page below.

    Anybody know how to change the css-code for pages?

    Greets

    • This topic was modified 3 years, 3 months ago by Timo.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    the single class applies to single posts – not pages.
    To include pages you would use this:

    body.single .inside-article h2, body.single .inside-article h3,
    body.page .inside-article h2, body.page .inside-article h3 {
        margin-top: 50px;
    }
    Thread Starter Timo

    (@duke119)

    Wow, thanks for your fast reply, david!

    It works as expected, thank you!

    Glad to be of help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change margin on page headings’ is closed to new replies.