How to adjust spacing of Page Titles

  • Author
    Posts
  • #46889

    Hi All,

    I’m trying to reduce the top and bottom spacing of my website’s Page Titles. The WordPress theme is Nirvana, and at the moment there is a 30px space above the Page Title, and a 23px space below the Page Title.

    I’m using the Cryout Serious Theme Settings, however none of the settings seems to allow me to actually adjust the spacing vertically. I’ve tried everything, including using custom CSS to change the margin and padding for h1 and h2, etc. Nothing seems to make a difference.

    Is there a custom ID or Name for the Page Title that I can modify with custom CSS? If so, could someone please let me know what it is. Thanks! 🙂

    • This topic was modified 6 years ago by Silver2017.
    #47108
    Zed
    Cryout Creations mastermind

    #forbottom { padding-top: 0; }

    The space under the page title is usually created by the top margin on the first page content element (most likely a heading in your case).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #47198

    Hi Zed,

    Thanks for your response! Yes, the #forbottom ID definitely works, however it affects more than just the Page Title, it also affects the space above the Widgets in the Sidebar. It seems like it affects everything below the Menu Bar. I guess that’s why it’s called “forbottom”.

    My concern is that I’d like a nice even space so that the Page Title text and the Sidebar (right) Widgets line up with each other. Is there a similar command for the Sidebar, so that the Widgets line up evenly with the Page Title text?

    Ultimately, I want to have even spacing around the top/left of the Page Title text, and top/right of the top Widget in the right Sidebar…

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

The topic ‘How to adjust spacing of Page Titles’ is closed to new replies.