How to customize K2 v0.9.6

Published on June 21, 2007   By Ram  13 Comments  

Few days back K2 v0.9.6 theme for wordpress was released, this release contains security fixes. It’s time to update to this version if you have not already done. The new K2 now has support for two sidebars, you can enable this feature in the K2 options panel. I am glad that they considered 2 sidebars because lost of users prefer 2 sidebars.

With the two sidebars option you are no longer dependent on other sites to update the 3 column K2 themes to latest K2 version. The dual sidebar option displays one sidebar on the left and one on the right, if you are currently using 2 sidebars aligned to right like this blog then you have to edit CSS to align them right.


Here is what i did to get the 2 sidebars on the right. It worked for me, hopefully work for you also. Find the CSS classes mentioned below and replace them with the classes in your style.css file.

.sidebar-dual #page {
	width: 995px;
	}

.content {
	padding: 0 20px;
	}

#primary {
	position: relative;
	float: left;
	width: 540px;
	padding: 10px;
	}

.sidebar-dual #primary {
	padding: 10px;
	}

#sidebar-main {
	float: left;
	width: 200px;
	margin: 0 20px 0 760px;
	padding: 10px;
	}

#sidebar-alt {
	float: right;
	width: 160px;
	padding: 10px;
	margin-left: -170px;
	}

Update: K2 v0.9.6 is compatible with wordpress 2.2.1

Related Posts

Subscribe to RSS or via Email to get daily updates.

13 Responses to “How to customize K2 v0.9.6”


  1. Nice tips. I never tried customising K2, will lot of files and styles, i’m sure to miss somethings.. :-)

  2. @Nirmal
    K2 is a very matured theme. It looks hard for customizing but its not.

  3. I’m sure that a lot of people will be happy to know that k2 now supports 2 sidebars. This tutorial is pretty good. Nice job buddy.

    Stumbled.

  4. @Brown
    Thanx for the comment and stumble :-)

  5. Nice tips ram . i used K2 before , was a great theme .

  6. @Madhur
    K2 is one of the best themes available for wordpress.
    Thanks for the comment

  7. K2 is my 2nd choice when it comes to themes. I’ll stick to my TypoXP for now ,but K2 has some very cool features. I especially like the Ajaxy feel of the comments.

  8. So I would find the appropriate section in my CSS file and replace with above code and I could use K2 out of box (almost) instead of double tracking something like 3K2?

    And, did you customize the header as well? Any clue? thanks.

  9. New K2 version has 2 sidebars (left and right) you could right away use that with out looking for other styles like 3K2. The above code makes the 2 sidebars to align right instead of left and right.

    Yaah i customized the header to include a place for banner. It can be done easily with CSS and by including an extra div in header. Let me know if you want more info

  10. I started with trident, went to 3k2 to get both on right side, so yeah, anything that would make it simpler. as for the header, what I like is the reduced foot print from default k2 header thatis what a good 2 inches plus. The built in space for a standard-format banner ad is a bonus, and could also be used for one’s own branding or illuminated tagline. Maybe I will bump that when I get upgraded. thanks again.

  11. I’m trying to get this to work for me but so far no luck…replaced the code but still side bars are one right and one left…

  12. @Andrew
    Not sure what is your problem, make sure you are using latest style.css and not old one.

  13. Rami, thanks a lot! You helped me from having a corrupted dual sidebar.

Trackbacks/Pingbacks

Leave a Reply