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

Comments

  1. Yvette

    I don’t use Kubrick but that was a great snippet. :)

  2. syuxx

    kubrick is a great theme to be experimented with

  3. flisterz

    haha kubrick is a tough theme when I started learning. and I still hate it.

  4. syuxx

    but kubrick always give the latest code been used in wordpress.
    yah, it is hard too since im just a beginner in this php language and css too.

  5. Leonaut.com

    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 …

  6. Techronnati

    nice kubrick

  7. emila

    “” in there!

    thanks for the code!!

  8. iden

    Great fix for us newbies. One issue is after making the fix the single page view left column having the post displays one line lower than it did on the index page :-( not fatal but if there is a way to fix it that would be great.

  9. Teresa

    Great advice – was trying to find a solution for this all day through plug-ins and all sorts. I often try not to edit code b/c I am not a programmer but your advice was so simple I was confident to do it.
    Thanks very much.

  10. euroluxury

    thanks for tips.. i have been thinking to migrate mine to a new place :)

  11. Elsa

    That works well, but there’s a bit mistake there.

    the code you entered was

    <?php get_sidebar(); ?

    While it should be

  12. Elsa

    ..I mean you need to add “>”

  13. Al

    Right Elsa, like this:

Leave a Reply