add sidebar to wordpress pages

asked Mar 1, 2013 in Website Builder by SaraSX
edited Mar 1, 2013 by SaraSX
Hi all..

I am using TwentyEleven theme on WP 3.5.1 and I have the sidebar showing only on my home page. All the other pages don't have the sidebar. However recently I decided I want to add the sidebar to another page (other than my Home Page). Note that I have already added the sidebar to all posts by using a child theme, and they are currently displaying the sidebar normally. Can anyone please tell me how to do this?
thanks?

1 Answer

0 like 0 dislike
answered Mar 1, 2013 by WebProX
Go to your pages template file and before the line <?php get_footer(); ?>
insert the below code: <?php get_sidebar(); ?>
...