Site logo

[Support request] Remove container padding for single posts

Home Forums Support [Support request] Remove container padding for single posts

Home Forums Support Remove container padding for single posts

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1454591
    nickgray

    Hello,

    I have tried to remove container padding from the single posts, but the CSS is not applied for some reason.

    I have added:

    .single-post > .separate-containers .inside-article {
    padding: 0 !important;
    }

    but this doesn’t work for some reason.

    #1454596
    nickgray

    It is not aligned with the logo like here https://nickgray.net/nyc-right-now/ and reseting it in Customizer makes 0 padding everywhere, so on iPad and Tablet it has 0 padding everywhere.

    #1454600
    Elvin
    Staff
    Customer Support

    Hi Nicholas,

    I see that you’re using Autoptimize. Perhaps this is a caching issue.

    Can you try clearing Autoptimize cache? (and browser cache just to be sure)

    You may also want to add this CSS so the breadcrumbs is aligned to the logo too:

    #breadcrumbs {
        padding-left: 0;
    }
    #1454602
    nickgray

    Hi Elvin,

    Cleared it and still the same. It doesn’t react at all in customizer either (while I’m adding css)

    #1454603
    nickgray

    If I set padding left to be 0 in Customizer, it just looks ugly with no space on the left for tablet and ipad. It also affects everything, e.g. blog page, category pages, search page

    #1454604
    nickgray

    Breadcrumbs are not problem, I added that in custom css because I was unable to reduce padding for posts.

    #1454611
    Elvin
    Staff
    Customer Support

    Can you test this CSS instead?

    body.single .inside-article{
    padding: 0px;
    }

    Let us know if it works for you.

    #1454681
    nickgray

    That worked, thank you.

    #1454697
    Elvin
    Staff
    Customer Support

    No problem.:)

    #1454726
    Elvin
    Staff
    Customer Support

    I should’ve mentioned this earlier. My bad.

    To add:

    Alternatively, you can achieve the same result w/ GP Premium’s Layout Element.
    https://docs.generatepress.com/article/layout-element-overview/#content-1

    You can set the Content Area to Contained (no padding) and set its display rule to apply only on single posts.

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