• 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter spencelimb

    (@spencelimb)

    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.

    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

    Thread Starter spencelimb

    (@spencelimb)

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

    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!

    Thread Starter spencelimb

    (@spencelimb)

    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 https://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

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help with Removing all Sidebars’ is closed to new replies.