Remove sidebar only on content pages

  • Unknown's avatar

    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: (visible only to logged in users)

  • Unknown's avatar

    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%;
    }
  • Unknown's avatar

    Thank you very much! :) This is very helpful.

  • Unknown's avatar
  • The topic ‘Remove sidebar only on content pages’ is closed to new replies.