Make the Sidebar Appear on
WordPress Twenty Eleven Theme!
WordPress 3.2 launched and brought with it a brand new default theme by the WordPress team named Twenty Eleven!
Twenty Eleven is a really hot little theme with a lot more features under the hood than many would expect and definitely something I’ll be writing more about very soon.
However, it is also a theme that is “missing” a sidebar on posts and pages and that makes it incompatible with the needs of many of my readers… particularly for posts!
I’d been saying I was going to learn how to write a child theme for a long time so this was a great opportunity for me to get my hands messy in some code and fix this “bug” (that isn’t a bug at all).
This child theme for Twenty Eleven will first widen the default (narrow) sidebar and then cause it to not only display on the home page (default) but also on the posts.
I did not make the “correction” for pages as a sidebar template is already included. (Go into the page you want to change, in the right column, under the template dropdown, select sidebar.) Don’t worry the pink in the picture is totally changeable in the custom options for the theme, was just left over from testing.
I am aware that this is not the most elegant fix and that the comment field is a bit narrow yet and that some of the paddings could use real work – but it’s my first child theme and it hopefully gives you the ability to start enjoying this really amazing theme. Hopefully I can get some help cleaning it up even further and release an updated version soon!
After upgrading to WordPress 3.2, ensure that you have the Twenty Eleven theme installed as well.
Download the justaskkim-twentyeleven-0.1.3 here.
Upload, Preview & Activate (like you would any standard theme).
Now, all of the theme elements of Twenty Eleven are running as WELL as the edits. This allows upgrades to the Twenty Eleven theme without destroying the edits.
Your Partner In Online Success