I like the Kubrick theme which is currently in use on this site.
One thing that I wanted to change on it, though, was that I wanted the right hand navigation sidebar to display when viewing single posts – single posts are governed by the single.php page. I am aware that there are probably very good ui reasons not to have the sidebar display in single posts but I prefer to have it on for consistency.
I tried simply adding the
to single.php but this didn’t work as expected. The sidebar displayed but you had to scroll way down to see it at the bottom of the right hand side.
Looking into it further, I realised that in single.php the content div has a class widecolumn as below:
Whereas in page.php this same line read
As soon as I changed the class to narrowcolumn in single.php, the sidebar jumped up to the right place.
8 thoughts on “Showing the sidebar in Kubrick's single.php”
Thanks a lot, I look for therefore I have much time.
Nice tip 🙂
Thanks Michele – glad you liked it! How’d you find it as a matter of interest?
I was trying to find another post related to kubrick which I remembered reading
It was the link to that Kubrick header thing you had posted …
I tried that last night, but it couldn’t find the images I was finding on flickr directly so I gave up and used a different theme 🙂
Very nice tip. The way I see it, you NEED the sidebar to get people hooked into the rest of the blog. Without it, often only one entry is read. From a marketing perspective I’d say that this is the first change one should make.
Hello, I followed your instructions and for some reason it isnt working.
Could you help me in anyway?
Comments are closed.