Home>Support>White gap between hero image and top of website/main menu

White gap between hero image and top of website/main menu

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello!

I found the following custom CSS online to remove the white gap between my hero image and the top of my website (where the menu would usually be):

/* Home */

.home #main {
padding-top: 0;
}

.home.layout-full .panel-row-style.panel-row-style-full-width {
padding-top: 0;
}

However, I wish to remove the white gap on ALL of my website’s pages! Can you send me s custom code that will remove the white space on all pages?

Thank you.

Chris

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hi Chris

    Thanks for reaching out.

    Do you have a public URL where we can take a look at what’s going on?

  2. 5 years, 2 months ago chriside

    Hello,

    Yes of course! SO this is the link to the homepage, where the custom CSS has worked and there is no white gap at the top:
    https://sussexstoneworks.co.uk/

    However, the gap still appears on other pages such as the following links:

    https://sussexstoneworks.co.uk/granite/

    https://sussexstoneworks.co.uk/marble/

    https://sussexstoneworks.co.uk/quartz/

  3. 5 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Thanks for sharing. If you remove .home from both rules mentioned in your initial message, those rules would apply to all pages.

    If that isn’t suitable then you could add a rule for each page. Please, find a short tutorial on page/post body classes below: Post: Unique Page Styling with Custom CSS Body Classes.

  4. 5 years, 2 months ago chriside

    THANK YOU! It worked!

  5. 5 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Super, I’m really glad to hear you’re making progress with this question and Custom CSS in general. If questions arise in the future, please, let us know.

    Cheers for now :)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More