Need help? Check out our Support site, then


Remove sidebar only on content pages

  1. Hello!

    I'm working with the Sight theme on http://travelblaug.wordpress.com. I'd like the pages to be full-width, except for the homepage where I'd like to keep the right sidebar. How can I change the CSS code to achieve that? (PS: I purchased the customization upgrade).

    Thank you for your help!

    Marshmallau

    The blog I need help with is travelblaug.wordpress.com.

  2. Hi Marshmallau, this will remove the sidebar from static pages such as Finlande

    .page #secondary {
        display: none;
    }
    .page #primary {
        width: 100%;
    }

    This will take care of the single post pages:

    body.single #secondary {
        display: none;
    }
    body.single #primary {
        width: 100%;
    }
    body.single .entry-content, .single .entry-header {
        padding-right: 2.5em;
    }
    body.single .comments-link {
        right: 2.5em;
    }

    If you wish to remove the sidebar from the categories/archives/tags pages, then the following will do that.

    .archive #secondary {
        display: none;
    }
    .archive #primary {
        width: 100%;
    }
  3. Thank you very much! :) This is very helpful.

  4. You are welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic