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?
 
Associate
Joined
16 Jan 2010
Posts
768
There is a plugin called widget context that will let you choose what widgets are shown based on the page based on the settings.

Its got all the usual home page ect.. but you can also use wild cards based on the url... i.e. only shown on pages that match *contact-form* in the url.

Hope that helps
 
Back
Top Bottom