[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

  • This topic has 9 replies, 2 voices, and was last updated 1 year ago by Elvin.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1454591
    Nicholas

    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
    Nicholas

    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;
    }

    A wise man once said:
    "Have you cleared your cache?"

    #1454602
    Nicholas

    Hi Elvin,

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

    #1454603
    Nicholas

    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
    Nicholas

    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.

    A wise man once said:
    "Have you cleared your cache?"

    #1454681
    Nicholas

    That worked, thank you.

    #1454697
    Elvin
    Staff
    Customer Support

    No problem.:)

    A wise man once said:
    "Have you cleared your cache?"

    #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.

    A wise man once said:
    "Have you cleared your cache?"

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