Forums

Help with Removing all Sidebars (8 posts)

  1. spencelimb
    Member
    Posted 3 years ago #

    What do you guys think would be the best way to remove all sidebars. I deleted all the text out of sidebar script in the theme editor so now the area is blank, but the sidebar area is still there.
    I would like to see all of the sidebars completely removed from the theme. Basically making it one centered column

  2. Chrisber
    Member
    Posted 3 years ago #

    All you have to do is delete the get_sidebar command from which ever template file you want to change and alter the css file to increase the width of your main content area.

  3. spencelimb
    Member
    Posted 3 years ago #

    The first part worked great, thanks for your help, still trying to figure out how to alter the css file to increase the main content are though.

  4. chaoskaizer
    Member
    Posted 3 years ago #

    still trying to figure out how to alter the css file to increase the main content are though.

    Themes name? URL? you need to provide more info

  5. spencelimb
    Member
    Posted 3 years ago #

    I finally figured it out, I really appreciate everybodys help, this is such a great community

  6. the_doctor199
    Member
    Posted 3 years ago #

    Could someone help me with this? What part of the css code do i alter? Im trying to remove the sidebar on one page just..

    Thanks!

  7. spencelimb
    Member
    Posted 3 years ago #

    hey DOC,

    Could someone help me with this? What part of the css code do i alter? Im trying to remove the sidebar on one page just..

    Not sure if you resolved this yet, but I started working on a different website, spencerlimb.com and I am going through this right now.
    Basically how I got around it was to create a sub directory http://spencerlimb.com/spencersadventures on the server, and then install wordpress into it. Basically making 2 seperate blogs, I will then use the second as a slave that goes back to the main site. For the template, I just copied the one from my primary.

    Hope that helped and didn't confuse you more

  8. jessn
    Member
    Posted 3 years ago #

    If you want to remove the sidebar from just one page you just have to make a page template. Open page.php in a text editor and save it as something like "page_nosidebar.php" Then add this to the very very top:

    <?php
    /*
    Template Name: NoSidebar
    */
    ?>

    Usually just below that will be your get_header code.

    Then when you publish or edit a page you'll have an option via a drop down menu to select that page's template- default or NoSidebar. If you pick NoSidebar then that page will be created without one.

Topic Closed

This topic has been closed to new replies.

About this Topic