How To Display Sidebar in Single Post in WordPress 1.5 / 2.0 Default Kubrick Theme
December 26th, 2005 by Angsuman ChakrabortyWordPress default theme (Kubrick based) does not display sidebar on single post page. However with a minor change in the theme you can make it to display sidebar. This works in the default theme of WordPress 2.0 and 1.5.x.
Login as admin.
Click on Presentation / Theme Editor / Single Post.
Change the second line from:
<div id="content" class="widecolumn">
to
<div id="content" class="narrowcolumn">
Then add this line :
<?php get_sidebar(); ?>
just before the last line containing:
<?php get_footer(); ?>
You are done!
Now you will have a sidebar, identical to the front page, on all your post pages.
Note: This supercedes my earlier post on this sidebar problem, as this solution is without any side-effect, unlike my previous solution.
Tags: CMS Software, Headline News, How To, Pro Blogging, Tech Note, Web, WordPress | | RSS 2.0 | Email this Article










































Add to Technorati Favorites
December 26th, 2005 at 11:58 pm
[...] [...]
January 2nd, 2006 at 9:31 pm
Hi there, i had just reopen the wordpress 2.0 theme design competition which will start very soon. I hope you could help me to spread the news. Im offering a lot of gadgets as the prizes and i wish will there be a lot of competitors.
Ive put the entry as a sticky topic on my blog and only will be take down after the competition had been complete. For direct link to my Wordpress 2.0 Theme Design Competition, this is the address
http://kcyap.com/?p=47
I hope you could set a trackback to my entry so i know you had help me to blog about this.
Thanks in advanced.
January 3rd, 2006 at 3:33 am
You got it.
WordPress 2.0 Theme Competition Announced
November 24th, 2006 at 11:59 am
You rock! I’ve been trying to figure this out since I started my blog last weekend.
July 19th, 2007 at 5:19 pm
Thanks so much. You are a life-saver. I have two blogs and have been trying to add the sidebar to my single pages foreover and have been tearing my hair out. Thanks for the wide to narrow fix … just in time before I lost the last of my hair.
August 7th, 2007 at 1:11 am
If you want your sidebar with background, as on main page, you also need fix this string in header.php:
“if ( !$withcomments && !is_single() ) {” - we need “if ( !$withcomments ) {”. Enjoy!
August 12th, 2007 at 2:23 pm
Hi. Really thank you so much for this. I have been looking for this for a long time. Thanks a zillion.
August 21st, 2007 at 8:51 am
Much gratitude for the quick and simple fix. BTW, for wordpress 2.2, the file to modify is single.php.
Cheers!
January 29th, 2008 at 2:16 am
Hi,
Finally my \\\” How to display sidebar in individual post pages on kubrick theme \\\” search ends with your trick. Ivan Dulin fix really helps.
Here is my Weblog: http://meratechexplorer.com/microsoft/news
March 8th, 2008 at 10:57 am
Thanks! This was very useful.
March 21st, 2008 at 9:35 pm
Thanks for the simple, effective solution! In addition to adding the sidebar, your solution also appears to have corrected a title centering issue I was having with long titled posts under the default style. Thanks again!!
May 7th, 2008 at 6:39 am
Thanks this realy helped.