How do I remove the sidebar from all pages (but not from the blog) ?

  • Author
    Posts
  • #560596

    I need to remove the sidebar from my site’s pages at http://pyrodactyl.com .

    I am using the vigilance theme and have the Custom CSS upgrade.

    The blog I need help with is pyrodactyl.com.

    #560731

    timethief
    Member

    I will flag this thread so our Moderators move it to the CSS Forum for you. Since there is no official Staff support for the CSS upgrade, and precious little Volunteer support from only 2 volunteers I recommend that you read this article before starting your editing > http://csswiz.wordpress.com/2009/10/15/if-you-have-the-wp-com-css-upgrade/ Please be patient and consult tutorials found here > http://en.support.wordpress.com/custom-css/#css-help while waiting for a Volunteer to help you. :)

    #560732

    There are several themes here that look similar to Vigilance that have “no-sidebar” page templates you can select in the “attributes” module in the page editor. That would leave the sidebar on post related pages (home, archives, categories, tags).

    To do it in vigilance would require the CSS upgrade and CSS editing experience.

    #560733

    Sheesh, thanks TT, I need to have some coffee it appears.

    @avindrajayadav, I’ll look at the CSS and be back.

    #560735

    First question would be do you want to remove the sidebar everywhere? or just on static pages but not the “blog” page?

    #560737

    OK, the following assumes you want to remove the sidebar from only the static pages and leave it on the “blog” page and other post related pages. It removes the sidebar and widens the content area.

    .page #sidebar {
    display: none;
    }
    
    #content {
    width: 970px;
    }
    #560739

    Gaaaaahhhhh! I definitely need coffee. There is a mistake in the above. Use the following instead.

    .page #sidebar {
    display: none;
    }
    
    .page #content {
    width: 970px;
    }
    #560746

    Thanks a lot for your help! The code works correctly.

    #560748

    And sorry for asking this in the wrong section, I was confused if there a way to disable sidebars other than CSS editing.

    #560751

    You are welcome and not a problem, the moderators will move it to the correct forum.

    In some themes as I mentioned, you can use the “no-sidebar” page template and have full-width static pages, but Vigilance does not have page templates.

    Also sorry for being mostly asleep. Must remember to not attempt answering forum questions till after I actually wake up.

    #560764

    sl1k
    Member

    Thread moved to CSS froum.

    S^K

The topic ‘How do I remove the sidebar from all pages (but not from the blog) ?’ is closed to new replies.