Remove White Border from Very Top Of Page

Posted in: Newspaper
Post count: 9

Hey guys,

When I try to set an image background and remove spacing for a section near the top of my page, I still get a white border around it.

How can I remove this white border at the top of the page and make my image “run in to” my menu/nav bar instead of this space?

Thank you

Post count: 9

This can be seen at

https://goaliecoaches.com/

Post count: 22421

Hello,

The white part you see is the top padding added on the page content. You can remove it for the homepage using this css code:
.home .td-main-page-wrap{
padding-top: 0!important;
}

Thank you!

Post count: 9

Thank you, Bogdan!

If I have other pages I want to remove it from as well, is it possible for me to do this, or will I just have to do this for every page?

Thank you

Post count: 22421

Hello,

The code must be adapted to other pages as well using the page id. You can see the page id like so: https://www.screencast.com/t/YrtUpCMJ
You can use the same code for multiple pages by adding them like so:

.home .td-main-page-wrap, .page-id-2647 .td-main-page-wrap, .page-id-2648 .td-main-page-wrap, .page-id-2649 .td-main-page-wrap{
padding-top: 0!important;
}

You can change the id’s in the code to match your own.

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.