WordPress.org

Forums

Removing the Sidebar on Certain Pages (3 posts)

  1. leepr
    Member
    Posted 8 years ago #

    Hi guys,

    I'm trying to remove the sidebar (not just the content - the space allocated for it) from a couple of my pages, but am not having much luck. I've tried a few things including removing the sidebar tags, but I'm not enjoying any success at all. I'm not really a CSS guru - I get along with quick (often messy) hacks.

    If you look at my my page at http://tinyurl.com/ye3gdy and its stylesheet at http://tinyurl.com/y68hrl, can anyone advise me how to get rid of the sidebar on certain pages? Would I need a seperate CSS, or what? I'm just trying to make the content in the main part stretcg across the full width of the page.

    Thanks in advance for any thoughts!

    - Thanks in advance for any replies!

  2. moshu
    Member
    Posted 8 years ago #

    You will have to create a new Page Template (see the Codex) for that.
    Besides removing the call for the sidebar template, you'll have to modify the "content" div.
    I'd rename that div in my Page template to something else, e.g. "mywidestuff" - and define it's width in the stylesheet.
    The width of the content div is defined in your stylesheet as 486px... so whatever you remove it still would be only 486px.

  3. leepr
    Member
    Posted 8 years ago #

    Excellent - thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.