• Does anyone know of a plugin to do such a thing. I’m using the menu section for navigation and only want the sidebar for the products section’s subpages however the rest of the site doesn’t need them. Thanks so much.

Viewing 1 replies (of 1 total)
  • You could try replacing <?php get_sidebar();?> in your page template (presumably page.php) with:

    <?php
    if ( is_page('10') || $post->post_parent == '10' ) {
        // assumes that the id of your Prodicts page is 10
        get_sidebar();
    ?>

    then just remove <?php get_sidebar();?> in the templates where you don’t want the sidebar showing.

Viewing 1 replies (of 1 total)
  • The topic ‘Display sidebar on subpages only’ is closed to new replies.