September 14th, 2007WORDPRESS : ADD THE SIDEBAR IN SINGLE AND ARCHIVE POSTS FOR KUBRICK THEME
WORDPRESS TIPS AND TRICKS
I use Wordpress 2.1 with the theme : WordPress Default 1.6 by Michael Heilemann aka KUBRICK but i would think most tips work with older and newer versions. (v1.5 to v2.2+) and other themes.
———————————————–
ADD THE SIDEBAR IN SINGLE AND ARCHIVE POSTS FOR KUBRICK THEME
For some strange reason, with the kubrick theme, the sidebar does not appear while viewing single posts and archive posts. If you have the same problem then follow these simple instructions.
Go to PRESENTATION –> THEME EDITOR
In single.php look for id=”content”
You will have to change the class to narrowcolumn :
<div id=”content” class=”narrowcolumn”>
In archive.php :
<div id=”content” class=”narrowcolumn”>
In archives.php — change to widecolumn :
<div id=”content” class=”widecolumn”>
In index.php :
<div id=”content” class=”narrowcolumn”>
I did this modification a while back so i don’t remember exactly which files i had to modify to get the sidebar to appear but if all your files are the same as my indications above, i’m pretty sure it should work. Let me know otherwise.
—————————————-
MORE WORDPRESS TIPS AND TRICKS ::
STOP GOOGLE FROM INDEXING FEED PAGES
AVOID DUPLICATE CONTENT TO HELP YOUR GOOGLE SERPS
ADD THE SIDEBAR IN SINGLE AND ARCHIVE POSTS FOR KUBRICK THEME
ADD THE ADSENSE CODE INTO EACH SINGLE POST, JUST BELOW THE POST’S TITLE
MODIFY YOUR WORDPRESS PAGES TITLE TAGS
ADD A STATIC MENU AND ADSENSE CODE BELOW YOUR HEADER
SHOW FULL POSTS IN ARCHIVE AND CATEGORY PAGES

March 9th, 2008 at 8:33 pm
I think it will be useful one.
March 23rd, 2008 at 2:13 pm
Hello everybody, my name is Damion, and I’m glad to join your conmunity,
and wish to assit as far as possible.
May 15th, 2008 at 4:06 pm
Hi,
Thanks for the pointer, it’s also worth mentioning that in order to have the sidebar appear add
[?php get_sidebar(); ?]
before
[?php get_footer(); ?]
on all of those pages.
June 8th, 2008 at 3:14 am
Thanks, both of you. My only frustration with Kubrick was the single post / sidebar issue, so now I’m happy.
August 5th, 2008 at 9:47 pm
I really appreciate the post you made cormac because without it, I would have not figured this out, but there is a little bit of an error…
Instead of adding [?php get_sidebar(); ?] on all those pages.
It should be on all those pages.
The difference is that you used brackets [and] and it should be at the beginnings and ends.
Steve
August 5th, 2008 at 9:51 pm
Oh well, I just made the above post, and now I see why cormac made it the way he did. This comment won’t allow me to use the pointy sideways looking V symbols. I assume it would mess up this page??
Anyway, if you replace his bracket symbols [ and ] that he shows at the ends of his tags with the pointy looking V symbol laying on its side, it will work!
Steve
August 7th, 2008 at 5:41 pm
thanks a lot for the tip !!
August 18th, 2008 at 1:30 pm
So, I resume howto correct the sidebar bug in the Kubrick’s theme :
You just have to edit single.php and replace
by
and add, at the bottom of the page :
juste before
it works great for me with the kubrick theme customized with a left sidebar…
have a good day
August 18th, 2008 at 1:35 pm
erk… the php doesn’t appear !
so replace “content” class=”widecolumn” by “content” class=”narrowcolumn”
and add the get_sidebar instruction before the get_footer
September 24th, 2008 at 7:51 am
Thanks for the great tip! Worked fine – but I noticed that, on the single posts, the sidebar does NOT have the light blue background (that helps separate it from the main body column) like it does in all other instances.
How can we get the sidebar to have that blue background in the single posts?
Thanks,
Brian
April 11th, 2009 at 11:56 pm
Oh well, I just made the above post, and now I see why cormac made it the way he did. This comment won’t allow me to use the pointy sideways looking V symbols. I assume it would mess up this page??