How can I hide the sidebar on specific pages?

I’m using a child of the twentyten default theme and I want to hide the sidebar on some pages.

What is the solution for that?

Related posts

Leave a Reply

3 comments

  1. create a new page template, simply duplicate the current page.php or index.php. remove the following:

    <?php get_sidebar();?>
    

    and place a template title at the top of the file

    <?php
    /*
    Template: No-Sidebar Template
    */
    ?>
    

    Then you can choose that when publishing.

    NOTE: This will probably impact on your styles, may need to tweak your stylesheets.