Ruben Laguna’s blog

How to Display Sidebar in Single Post in WordPress 1.5 / 2.0 / 2.7.x Default Kubrick Theme

I found this great tip
How To Display Sidebar in Single Post in WordPress 1.5 / 2.0 Default Kubrick Theme
.

The only problem is that the code that you should add is not properly shown in the post. He just copied the xml code verbatim in the post without escaping it and the browser doesn’t display it properly. So I’m reproducing it here for your convenience.

  1. Go to the theme editor. Appearance ⇒ Editor
  2. Click on Theme Files ⇒ Templates ⇒ Single post (single.php)
  3. Change the class of the first div to be “narrowcolumn” instead of “widecolumn”
  4. That is, replace:

    1
    

    1
    <span class='line'>&lt;div id="content" class="widecolumn">&lt;/pre> with &lt;pre lang="xml">&lt;div id="content" class="narrowcolumn"></span>

  5. Add a call to get_sidebar() at the end just before get_footer()
  6. That is, add the following line:

    1
    

    1
    <span class='line'>&lt;?php get_sidebar(); ?></span>

    before this line:

    1
    

    1
    <span class='line'>&lt;?php get_footer(); ?></span>

    Hope this helps. Remember that it was Angsuman Chakraborty who came up with the solution. I just merely reproduced it here because I noticed that xml code in the original post is not readable.

    Comments

    Copyright © 2015 - Ruben Laguna - Powered by Octopress