• Hello Everyone, I am trying to figure out how to do the following. I want to have the front page with a sidebar, the inside pages without no sidebar and then the blog (posts) have a sidebar. Below is my script and I am running the Twenty Twelve theme.

    <?php if ( is_front_page() ) { ?>

    <?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
    <div id=”secondary” class=”widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘sidebar-1’ ); ?>
    </div><!– #secondary –>
    <?php endif; ?>

    <?php } else { ?>

    <?php }?>

    Any help would be great.

    Thank you!

Viewing 1 replies (of 1 total)
  • I’d just create a full page page.php and set the appropriate pages to it.

    just take out

    <?php get_sidebar("show"); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘No Sidebar for Pages and Sidebar for Blog’ is closed to new replies.