Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] Content Padding for Pages/Home Page

Home Forums Support [Resolved] Content Padding for Pages/Home Page

Home Forums Support Content Padding for Pages/Home Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #591087
    Zad

    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!

    GP Premium 1.6.2
    #591145
    Leo
    Staff
    Customer Support

    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;
        }
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.