Adding the Wordpress Sidebar to Every Page
When you first install Wordpress, the default Kubrick theme doesn’t display the sidebar when you view a single post. It’s a feature many people ask for and here’s how you do it.
In your Wordpress admin interface, navigate to Presentation > Theme Editor and then select Single Post from the right menu. The ’single.php’ file will appear in the editing window.
The first change is to replace the second line:
<div id="content" class="widecolumn">
with
<div id="content" class="narrowcolumn">
Once that’s done, scroll to the bottom of the page and find the line <?php get_footer(); ?> and replace it with:
-
<?php
-
get_sidebar();
-
get_footer();
-
?>
And that’s it! Your sidebar will now appear on every page of your Wordpress blog.

May 16th, 2008 at 9:09 pm
Adam, you’ve made my day MUCH easier with that bit about narrowcolumn vs widecolumn! Thank you a ton for an easy to read, quick to implement yet super useful post!
Much love!
May 30th, 2008 at 4:24 pm
Thanks Dude!! PS - really cool blog!!
June 3rd, 2008 at 5:30 pm
Thank you so much for this! Now teach us how you get those killer designs on the background LOL!!
June 5th, 2008 at 11:34 am
Glad you found it helpful guys!
Kim - I might just do that!
June 28th, 2008 at 1:12 pm
Thank you so much for this simple,clear explanation that even a non techie like me could follow. I’ve been wanting the sidebar to show on all pages/posts for ages and had tried some other ways that I couldn’t get to work
July 1st, 2008 at 7:11 pm
Hi Adam,
Thank you so much for this post. I work as a virtual assistant and have just recently entered this crazy world of CSS/PHP. (Just when I felt like I got the hang of HTML!) This little change worked perfectly and I also applied it to the archives page for a blog I am putting together for a client.
Thanks again, from my clients as well!
July 9th, 2008 at 7:22 pm
thanks for the post, really helped me, nice site too
July 14th, 2008 at 8:15 pm
Thanks so much, I really appreciate it!
July 16th, 2008 at 2:35 pm
You can also simply delete the single.php file altogether and WP will use the index.php file instead.
July 17th, 2008 at 11:27 am
Ben: While this is true you will lose comments on your entries, plus many people like to add single.php specific content such as related links etc. which will also be lost.
Personally I wouldn’t choose to delete the single.php file when a couple of code changes are all you need, even if you don’t allow comments.
September 15th, 2008 at 2:29 am
I’ve just started with WordPress and was trying to figure out for a couple days how to do this. You think it would be the default, or at least an option, inside the dashboard. The WordPress site was not very helpful — you were. Thanks, Adam.
September 19th, 2008 at 7:37 pm
Wonderfully easy. Thanks Adam.
Tug
October 9th, 2008 at 9:11 pm
Hi,
Thanks for the tip. Your blog is awesome! Publish more such tricks…