Make kubrick theme single page view sidebar

Kubrick has been known as one of wordpress default theme everytime we install wordpress CMS to our blog. Kubrick also has been known as one of theme main source because it have a beautiful codes in it. As default, the main index page of Kuburick theme was 2 column. But as it viewed in single page, it become only one single column page. I know many people hate this. As sidebar is really useful because you can embed your shoutbox, make money programme and many more.

make wordpress 2 column 300x280 Make kubrick theme single page view sidebar

The default wordpress theme single view

So, why not we bring back the beautiful Kubrick theme into 2 column as default in single page view. Here how it work. I also has adapted this trick in this blog theme. Yeah, i use kubrick cause it awesome :)

First, open up your your default theme aka kubrick theme folder. The theme folder is located at wp-content > themes > default. Then, search for the single.php file. Open it with your notepad. Now, in that file, search for this code:

<?php get_header(); ?>
<div id="content" class="widecolumn" >

Found it? The code is located at the top of the file content incase you didnot find it. Now replace that code with this code:

<?php get_header(); ?>
<div id="content" class="narrowcolumn" >

And then, to add sidebar into your kubrick single view page add this following code:

<?php get_sidebar(); ?

Make sure you add this code before the code.

<?php get_footer(); ?>

Now save your work, upload it to your server and activate it. View it in single page and you can see the sidebar with it just like mine :)

add kubrick theme sidebar 300x270 Make kubrick theme single page view sidebar

The final result. Now the sidebar is there

You can add more and more tweaks to kubrick theme since it is easy to be customizeable. Maybe you could try this Show latest comment for each post on main page trick by Flisterz.

It is a fun things to messed with php codes. I really wanna learn more about php code. Huhu