Site logo

Archived topic

How to remove white space from single page's hero section only?

5 replies · Started by Sibi Paul on July 25, 2021

Viewing posts 1–6 of 6

Hi...

Kindly check my site's home page.

There is a small sp[ace between the Header and hero section...

I would like to remove the space, Only from the home page.

If I reduce the space in Customize, then the Entire site will affect that change...

What if I wish to remove that space only from the home page?

Kindly help me...

Thanks.

Hi there,

The space you see is a combination of margin and padding assigned to the #page element the padding added to the article container.

While we can remove these spacing by adding this CSS:

.inside-article {
    padding-top: 0 !important;
}

main#main {
    margin: 0;
}

I think the best practice is by actually turning the first section of your content as a page hero instead of adding it as a first section of the content so it doesn't get affected by the content padding.

I don't want it removed from Articles, Posts, etc...

Just need to remove it from a single page.

Anyway, your code NOT worked for the Page.

Now, the white space disappeared...

But, Actually... I don't want other elements to load in full width...

Kindly check the site home page... and suggest me best practice...

Thanks.

This archived topic is closed to new replies.