WordPress.org

Forums

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

  1. trumad
    Member
    Posted 1 year 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 1 year 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 1 year ago #

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

  4. Khoo Le
    Member
    Posted 1 year ago #

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

  5. kevmacrsa
    Member
    Posted 9 months ago #

    Hi polymathpunk,

    I tried this and it doesn't seem to help on my site

    Any suggestions?

    The site is http://www.msrsecurity.co.za

    The home page doesn't bother me so much as the other page like Guarding, Armed Response and Products

    Advice will be appreciated

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic