Wordpress different sidebars

Associate
Joined
19 Jul 2006
Posts
1,847
Is this possible.

I have a modified twenty12 theme and with in it I have a full width page and a page with a side bar.
However I would like to have 2 different pages with sidebars one that the side bar just contains a twitter feed and another page template that the sidebar just contains some html.

What are the files i need to create or change.

Im taking it i will need a page called pagesidebar1.php
PHP:
<?php
/*
Template Name: Sidebar1
 */

get_header(); ?>

		<div class="container">
			<div id="content" role="main">

			<?php
			/* Run the loop to output the posts.
			
			 get_template_part( 'loop', 'index' );
			?>
			</div><!-- #content -->
		</div><!-- .container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

and another page called pagesidebar2 with mainly the same content?
 
Back
Top Bottom