• Hi,

    I’ve like to figure out how to apply padding on the content pages such as post & pages but keep the home screen default.

    So far I’ve modified the css and added:

    .pad {
        padding: 15px 70px 20px;
    }
    
    .pad .entry {
        padding: 0px 0px 0px}

    Yet I want this to only apply to posts/pages, not home.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter EugeneAY

    (@eugeneay)

    Anyone? Would appreciate any suggestions.

    Thanks.

    I would add the padding globally to your site (like you are) then use your homepages id to select just that page, to change the padding back to the default. The class should be like this. Of course with the number being your homepage id number (not 10 necessarily).

    .page-id-10 .pad {
    default padding here*
    }
    Thread Starter EugeneAY

    (@eugeneay)

    Thanks for this Trey,

    I’ve put you’re suggestion into practice, but now the Q is: How do i find the id for the index page?

    Thanks.

    Here is a super quick video explaining how:

    Quick 1-Minute Tutorial

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Padding on Post/Pages but not Home’ is closed to new replies.