K2 Theme for Drupal

K2 is at version when Drupal 5.0 came out, and that is the version the Drupal port was based on.

Download

K2 for Drupal is hosted on drupal.org

Demo site

This page serves as a 1-page demo. Although you cannot try all the features or modules, it should give you enough idea if you want to download and play around with it.

web dweller's picture

I can't seem to make primary links work. I know the settings are fine since when i switch to another theme i can see them without problem, but not on k2. Maybe i did something wrong?

chris's picture

Does the above instruction help you? I just added a section on primary links.

web dweller's picture

I managed to get it to work. Weird as it seems, the problem was that i changed the name of the folder "k2" to anything else. If you do that, the theme doesn't work properly.

chris's picture

The 'k2' in the function that generates primary links is hardcoded in template.php. I think that's why it won't work when you change the theme folder name. Try changing it there and it will probably be ok.

web dweller's picture

I am trying to decide whether to use Drupal or WordPress for a website I will be co-developing for my student group. Either way I will be using K2 and customizing through a CSS theme.

My question is: Is this theme customization possible in the Drupal port of K2 or just in the original WordPress version.

If it isn't available, will it be soon?

(I wouldn't normall ask such a simple question, but I couldn't find this info anywhere...)

chris's picture

I kept more than 98% of the CSS the same in Drupal version, compared to the original WordPress version. And by all means, CSS customization will work. In Drupal, you can create subdirectory in the theme directory, put a style.css there, and it will be available for selection.

web dweller's picture

Thanks so much for the reply. I would like to use wordpress, as I said, but if I can do this with Drupal, i figure why bother with trying to integrate some sort of forum, photo gallery, etc etc to wordpress when Drupal has it already.

web dweller's picture

Hello, I like your theme very much, I've been using Kubrick for half a year and upgraded to K2. One thing foxes me though: how to display the name of the user that wrote the post? The heading says just 'Published on..' but not by whom.

Thanks a lot.

chris's picture

The CSS classes were preserved as much as possible, I believe any CSS themes that work in WP will work almost without modification.

web dweller's picture

Hey, I got a chance to download it and play a little bit. So far I dig it!
Thanks

web dweller's picture

That’s normal. The name of the theme is used throughout the theme files.

If you really want to change the name (let’s say to ‘footheme’), you have to change all the function names in template.php that start with k2.

ie: k2_some_func(...){...} must become footheme_some_func(...){...}

web dweller's picture

I am trying to decide whether to use Drupal or WordPress for a website I will be co-developing for my student group. Either way I will be using K2 and customizing through a CSS theme.

web dweller's picture

I love the K2 theme´s look and feel, and I would love to see K2 for Drupal 6. Do you have any plans on implementing this?

web dweller's picture

I started to work with Drupal, which makes a very good impression, but needs as well time to learn it. Wordpress is ideal for smaller web sites.

web dweller's picture

I have the same problem with K2! Have you already found a solution??

chris's picture

Hi Eule,

I've just ported GlossyBlue to D6 and am finding time to squash bugs and porting K2 very soon. Which problem were you referring to?

web dweller's picture

Thanks for the theme, still trying to learn drupal

web dweller's picture

Any Luck with this , I am still working on this cool app but with small trouble same as you had !

web dweller's picture

Hi, I got a chance to download it and play around with it little bit. So far I really like it! Thanks

web dweller's picture

hi chris,
you announced you would start porting k2 for drupal 6 soon. have you found time to tackle the project? what is the status quo, and where are things heading? thank you,
johannes

chris's picture

hi johannes,

The D6 port is in fact almost ready. I am now basing it on K2 Release Candidate 6 for WordPress, since I don't know when the final K2 release will come out and D6 has been out there for a while.

The new theme system makes it easier to transfer the look and feel of the original theme, which make heavy use of context-sensitive CSS identifiers. So the new version will

  • adjust width based on number of sidebars. (It supports 0, 1 or 2 sidebars
  • highlight comments made by post's author

I am cleaning up the CSS files, which has a lot of WordPress-plugins support built in. I think the port should hit drupal.org this weekend.

web dweller's picture

This theme would be a lot better if it didn't stretch to 100%. Stretching it makes it look horrible.