Support » Themes and Templates » Remove Sidebars

Viewing 5 replies - 1 through 5 (of 5 total)
  • Create a page-permanent.php file that outputs the layout you want.

    See the WordPress Template Hierarchy.

    I’d copy the contents of page.php into it as a starter and then mess with it until it provided what I wanted.

    Cheers

    PAE

    in your page.php replace get_sidebar() with this, and replace your_id with page ID number:

    if (!is_page('your_id')) {
    get_sidebar();
    }

    you could make a copy of the page template and then remove the get_sidebar() from that page and save it. While adding the page, where you do not need the side bar select the template file you just created from the drop down and you are done.

    adding the code which “netxm” suggests to the page would allow you to get the sidebar instead of ignoring it.

    Thread Starter jostoga

    (@jostoga)

    How can I add a new template, when I do not have DROP DOWN menu there?
    Thanks

    create new file in your theme

    you-page.php and put this on top of your page

    <?php 
    
    /** Template Name: Your Template **/
    
    ?>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Sidebars’ is closed to new replies.