[Resolved] Remove header on generate press sider site

Home Forums Support [Resolved] Remove header on generate press sider site

Home Forums Support Remove header on generate press sider site

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #763969
    Adam

    Hello,

    I am using the ‘Sider’ site from the generate press site library. On the home page I am not wanting there to be a menu/header. When I disable those elements they disappear but leave the space they originally filled still there. What is the best way to get around this? Is it the CSS for the site in the customizer that is causing the empty space to remain? The site is currently in staging, but this link is a screenshot of the issue: https://imgur.com/a/Fqn1nyh

    Thank you for your help.

    #763987
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Yes, you can find the CSS in “Customize > Additional CSS”.

    Look for this:

    @media (min-width: 1000px)
        body {
            padding: 0 50px 50px;
            margin-left: 300px;
        }
    }

    Just remove that block of CSS and you should be good to go 🙂

    #764002
    Adam

    Hey Tom,

    Thanks for telling me which CSS to change.

    I used the :not() selector so that block of CSS would not target the homepage and will keep the menu on the other pages.

    @media (min-width: 1000px) {
    	body:not(.home) {
    		padding: 0 50px 50px;
    		margin-left: 300px;
    	}

    Does that make sense to accomplish the task this way?

    Thank you.

    Happy Holidays

    #764113
    David
    Staff
    Customer Support

    Hi there,

    yes that makes sense and is the most direct way to do it.

    Happy Holidays!

    #764655
    Adam

    Ok great, I am glad to hear that.

    Thanks Dave.

    #764753
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.