• I have a themed site with 3 columns (content, sidebar & alt sidebar). I want one page to be 2 columns (content & alt sidebar).

    I’m using the following code in a page specific template and it displays the content correctly but also displays the main sidebar. I can’t get it to display the alt sidebar instead of the main one.

    <?php
    /* Template Name: Full2 */
    
    get_header();
    ?>
    
        <!-- #content Starts -->
    	<?php woo_content_before(); ?>
        <div id="content" class="col-full">
    
        	<div id="main-sidebar-container">    
    
                <!-- #main Starts -->
                <?php woo_main_before(); ?>
                <div id="main">
    <?php
    	woo_loop_before();
    
    	if (have_posts()) { $count = 0;
    		while (have_posts()) { the_post(); $count++;
    			woo_get_template_part( 'content', 'page' ); // Get the page content template file, contextually.
    		}
    	}
    
    	woo_loop_after();
    ?>
                </div><!-- /#main -->
                <?php woo_main_after(); ?>
    
                <?php get_sidebar(  ); ?>
    
    		</div><!-- /#main-sidebar-container -->         
    
    		<?php get_sidebar( 'alt' ); ?>
    
        </div><!-- /#content -->
    	<?php woo_content_after(); ?>
    
    <?php get_footer(); ?>

    If I remove or replace the 1st get_sidebar it doesn’t display any sidebar at all.

The topic ‘Sidebar Issue’ is closed to new replies.