How To Display Sidebar in Single Post in WordPress 1.5 / 2.0 Default Kubrick Theme
By Angsuman Chakraborty, Gaea News NetworkMonday, December 26, 2005
WordPress 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.
July 7, 2010: 7:18 am
Also it is a good idea to change the class of the content div to narrowcolumn so it fits nicely |
March 9, 2009: 10:31 pm
The PHP code doesn’t show up in your post as it’s not enclosed by |
April 12, 2008: 10:10 am
Thank you. I was completely lost on this till I found your cure for the missing sidebar. |
April 8, 2008: 2:19 am
Thanks for posting this useful tip. This works for me using WordPress 2.5. Cheers! Ben |
March 21, 2008: 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!! |
January 29, 2008: 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: https://meratechexplorer.com/microsoft/news |
August 21, 2007: 8:51 am
Much gratitude for the quick and simple fix. BTW, for wordpress 2.2, the file to modify is single.php. Cheers! |
August 12, 2007: 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 7, 2007: 1:11 am
If you want your sidebar with background, as on main page, you also need fix this string in header.php: |
July 19, 2007: 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. |
November 24, 2006: 11:59 am
You rock! I’ve been trying to figure this out since I started my blog last weekend. |
January 2, 2006: 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 I hope you could set a trackback to my entry so i know you had help me to blog about this. Thanks in advanced. |
FreddeGrand