Support » Themes and Templates » Twenty Eleven Sidebar Template not working

  • Resolved zerpex


    Hello guys and girls!

    I’m sitting here with my Site, and want the frontpage to be one-column, I go to Theme Options, set default Template to One-Column, go to all my other pages, and set the Template to Sidebar Template.. When I then view the other pages, They doesn’t have a sidebar for some reason.

    Do anybody know how to fix it?

    Best regards,

Viewing 15 replies - 1 through 15 (of 26 total)
  • esmi


    Forum Moderator

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    For this reason, it is recommended that you consider creating a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    Seems like it’s a standard post Esmi..

    So I’m wondering, the Twenty Eleven Theme in wordpress is for no use? – We can’t even use it as a blog? Is it just installed for taking space.. Because seems like we may not use it for our website.. Even without changing the theme code..



    Forum Moderator

    Please try reading my previous post.

    I can say so much, that I’m running a Child version of Twenty Eleven – And the problem is that the sitebar template ain’t working if I have one-column as default layout.. Then I can’t set sidebar template for other sites 😉

    I’ve created a workaround by editting 2 files (or 3 if you want the sidebar on single-post sites as wel.

    Check out:

    Pls comment on my post if you have any questions/remarks.

    Hello Bartsurminski!

    That I have, is I’m having 5 pages, Like etc Home, About Us, and Contact – I want the Home to be a onecolumn page, with no sidebar, and the others should have a Sidebar, but when I set onecolumn-page as default in the admin panel, it aint working with the sidebars on the other pages. – I’ll take a look on your site!

    You might be able to remove the get_sidebar statement from index.php in the editor.

    Open index.php in the editor (under appearance)


    </div><!-- #primary -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>


    </div><!-- #primary -->
    <?php get_footer(); ?>

    Then click ‘update file’

    I haven’t checked it myself if it works, so please backup your index.php.
    Hope it helps

    At least it removed the sidebar – Do you know any way, when you inspect the body tag, it says two-column – if I change that class to one-column, it works as it should – But I can’t find anywhere, where it writes two-column to the body tag for the frontpage

    The easiest way to get the sidebar on single.php or post page is to install a Child Theme of 2011 theme,
    You can download the theme from here

    You Can Do these changes without using any child theme. Here is What You have to Do.

    Add Sidebar TO Single Post Pages in Twenty Eleven

    Thank you both, I got everything fixed now.. 🙂

    Hey Guys,

    I lost some code in header.php and I need it back. It is specifically the H2 tag for the site description near line 108 I think. I lost the whole H2 tag and now my site description doesn’t show up. Can anybody paste the code over here for me? Thanks.

    – AM

    Don’t know the Line number, but i suppose it’s this piece: (only part with H2 in it)

    <body <?php body_class(); ?>>
    <div id="page" class="hfeed">
    	<header id="branding" role="banner">
    				<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
    				<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>

    Thanks dude! That worked. Also, do you know how I can align my fb login button to the right under the search bar?

    Must say i’m not that into php, copy paste of code is something i’m able to, aligning tables is another story 😉

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Twenty Eleven Sidebar Template not working’ is closed to new replies.