WordPress.org

Ready to get started?Download WordPress

Forums

Hemingway
[resolved] Remove whitespace just under the header (4 posts)

  1. trumad
    Member
    Posted 4 months ago #

    Thank you for such a wonderful theme. It looks like you respond to support questions really quickly. So thanks for being such a good guy too :)

    Basically, I have a website with mostly static pages. No blog posts. I have removed the titles from each page, using a "hide titles" plugin, since the title is bold in the top navigation menu.

    But to my eye, there's just a little bit too much white space between the header and the main content. I really struggle with css. Would you mind telling me which bit I need to edit in the stylesheet to remove/reduce the whitespace under the header?

    Thank you so much!

  2. polymathpunk
    Member
    Posted 4 months ago #

    I didn't understand your question completely. But I think you are referring white space under the navigation bar and the title on any page.

    By default it is 100px and defined in css for .wrapper class like this:

    .wrapper {
    margin-top: 100px;
    }
    search for .wrapper and tweak the margin value as per your need.
    But I strongly suggest to leave the original css stylesheet untouched and add your styling in separate css sheet which will override the respective default styles.

    You need a plugin which lets you write your own css on top of the default. For me it came with a lot of other stuff when I installed a plugin called 'jetpack'(there will be others too).

    So install Jetpack. Go to appearance -> edit CSS and paste the following code:

    .wrapper {
    margin-top: 100px;
    }
    change the value from 100px to whatever you want and preview and save the stylesheet.

  3. trumad
    Member
    Posted 4 months ago #

    Beautiful, this did exactly what I wanted. Thank you so much!

  4. Khoo Le
    Member
    Posted 3 months ago #

    I got the same problem, Thank you very much, Polymathpunk.

Reply

You must log in to post.

About this Theme

About this Topic