Ready to get started?Download WordPress


How do I reduce the space above and below page titles? (3 posts)

  1. ConsiderThis1
    Posted 3 months ago #



    From Inspect Element for the page linked above, I know that I have 30 and 25 px. Or something like that, my memory is impaired.

    I went through my CSS files looking for those values so I could make them smaller, but... I can't find a file that shows those values...

    How can I reduce the space above and below my page titles?


    I hope you are all having a lovely holiday weekend.

  2. josiahmann
    Posted 3 months ago #


    There seems to be two things going on here. The header margin isn't causing a lot of space... there is an empty <p> element at the beginning of the page content that is causing space.

    You really need to find that <p> and remove it. The other option is to add a negative margin to your title to compensate. You could do that by placing this in you stylesheet.css file (or theme custom css file if you have one)
    #content h1:first-of-type {margin:0px 0 -25px;}
    Hope that helps:)

  3. ConsiderThis1
    Posted 3 months ago #

    Hi Josiahmann,

    Wow, thank you. I didn't think to look in the Text view. After your suggestion, I did. Sure enough. I removed it.

    I can't see the change, but I think that has to do with the cacheing thing.

    Thank YOU very much.



You must log in to post.

About this Theme

About this Topic


No tags yet.