Have Your Sidebar Showing On Every Post
August 10th, 2008 by Clint and tagged keyword, Kubrick, sidebarIn the default Kubrick Wordpress template, it is set up so that your sidebar only shows on your index.php page. If you are monetising your blog, then you will want your affiliate banners to show on every page and every post.
A common thing that may happen, is that a post of yours will show up on page one of Google for a particular keyword. Unless this was your latest post, visitors won’t see any affiliate banners you may have down the side of your page.
There is a way around this, but it is a little technical.
- The first step is to login to your administration panel.
- Click the Design tab from the admin navigation menu.
- Select the Theme Editor tab from the administration sub-menu.
- Now select the WordPress default theme within the theme editor window from the drop down menu under themes to edit.
- Find and select the single post theme file (single.php) from the Wordpress default theme files to the right. You should now see Editing single.php at the top of the theme editor.
- Near the top of the file, find where it says:
<div id="content" class="widecolumn"> - Change widecolumn to narrowcolumn so the code looks like the following:
<div id="content" class="narrowcolumn"> - Now scroll down to the bottom of the file and find where it says:
<?php get_footer(); ?> - Directly above this add the following:
<?php get_sidebar(); ?> - Your final entry at the end of the single.php file should look like this:
<?php get_sidebar(); ?><?php get_footer(); ?> - Once edited, simply click the update file button at the bottom right and go view your site. You should now have a sidebar on your post pages.
In many themes that you upload to your server to use, this may have already been done for you. Many people do like to use the clean lines of the Kubrick template though, and this little trick makes your blog have that much more advertising space on it.





August 13th, 2008 at 10:12 am
Hi ,
I know it’s me as some of this is over my head at this stage. Will be great to understand eventually.
August 20th, 2008 at 3:36 pm
I’ll show you in Cairns mate, it’s pretty easy once you’ve been shown.
December 28th, 2008 at 3:18 am
Great post. Thanks for sharing!
I also have something about SEO to share. Check out at my website please.647