Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using twenty-eleven theme for my site, I just saw that in single posts page, .i.e single.php, the sidebar is absent,

which means no widgets in single.php page

How do I bring it back

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Write before <?php get_footer(); ?> <?php get_sidebar(); ?> or <?php get_sidebar( $your_custom_sidebar ); ?>

share|improve this answer
    
with your code, sidebar is been displayed but its displayed after the content, this 2011 theme is not meant to have sidebar in single.php page, which means I have to edit the css and make it compatible :( –  ntechi Jul 6 '11 at 11:22
    
I just found an alternate method, to get the sidebar, its installing a child theme, I have uploaded that theme on my blog, you can download from here webstutorial.com/add-sidebar-twentyeleven-theme/… –  ntechi Jul 6 '11 at 11:53
    
Child theme would be the correct and better approach, imho. –  Mark Duncan Jul 6 '11 at 19:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.