• Resolved annieoakle

    (@annieoakle)


    Hi,

    I’d like the sidebar (Recent Posts for example) to only show up on my blog “Posts” not on my “Pages”. It’s currently showing up on both. Is there a css code to make the pages display none for the sidebar?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi annieoakle,

    To do this, add the below custom CSS code:

    .page .sidebar{
    	display: none !important;
    }

    I hope it will work for you.

    Thanks
    Rishabh

    Thread Starter annieoakle

    (@annieoakle)

    Thank you! This worked. Yay!!

    But now I need to tell the page to be 100% in width, it is the same margins as it was with the sidebar so I need something like this code below that worked in another wordpress theme I have:

    .page-template-default .col-md8 {width: 100%;}

    Thank you!
    Annie

    Hi,

    This CSS code is not recommended.
    If you want to make the page to be 100% in width, better you will assign the full-width template to these pages.

    Let me know for any confusion!

    Thanks

    Thread Starter annieoakle

    (@annieoakle)

    Ok, thank you kindly for your help Rishabh!!

    Hi,

    Glad to help you!

    If you like our Theme & Support, rate us HERE.

    Thanks:)
    Rishabh

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Side Bar from Pages’ is closed to new replies.