Sign up ×
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 2011 theme, any how I managed to get sidebar on single.php pages by installing child theme,

But now I want sidebar on pages,

How do I get it?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

Funny you should ask, I've just posted an How to tutorial on how to add a sidebar on posts and pages in Twenty Eleven

share|improve this answer

Bainternet's tutorial is very good.

Another tutorial, which worked for me (and is actually a little simpler) is here:

And here's what I added to my functions.php file, after studying both tutorials:

     * Fix for no sidebar in single posts
     * From

    /* In child themes the functions.php is applied before the parent
     * theme's functions.php. So we need to wait for the parent theme to add 
     * it's filter before we can remove it.
    add_action( 'after_setup_theme', 'my_child_theme_setup' );

     * Removes the filter that adds the "singular" class to the body element
     * which centers the content and does not allow for a sidebar
     * By
    function my_child_theme_setup() {
        remove_filter( 'body_class', 'twentyeleven_body_classes' );

I didn't have to make any changes to CSS, and it worked!

HTH. Jeff

share|improve this answer

Your Answer


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.