Site logo

Archived topic

Content Padding for Pages/Home Page

1 reply · Started by Zad on June 3, 2018

Viewing posts 1–2 of 2

I was previously able to change the content padding on my single posts via this code from Leo

@media (min-width:769px) {
    .single.one-container .site-content {
        padding-left: 100px;
        padding-right: 100px;
    }
}

I was wondering if there was any similar code that I could use to pack the content on my home page more tightly. Thank you!

Hi there,

Currently the home page is using contained in page builder container which removes the padding:
https://docs.generatepress.com/article/page-builder-container/

If you want more padding then you need to disable that and use this CSS for home page only:

@media (min-width:769px) {
    .home.one-container .site-content {
        padding-left: 100px;
        padding-right: 100px;
    }
}
This archived topic is closed to new replies.