I’ve started the process of customising my K2 Wordpress theme and so far have added a little CSS customisation to tweak colours and fonts as well as hacking a couple of K2’s core files. I’ve also cobbled together a quick PHP enhanced CSS to change the primary link colour without rewriting loads of CSS definitions.
As things stand at present we have a couple of files of use. The first is a good old CSS file that imports the contents of a PHP-enhanced stylesheet.
The PHP allows you to change the link colour used through out the theme rather than using the default dark blue that you can see on my site.
If you want to change the primary link colour you just need to change the default import statement line in the james.css file.
@import "james.css.php";If you wanted a deep red rather than the default blue you would change your import statement as follows.
@import "james.css.php?lc=c00";This would make your links red (#cc0000 or #c00 for short.) The PHP script will accept colours of length three or six. If you use seven characters at the moment the script will strip the first character off and use the last six instead.
I’m going to improve the PHP a little over the next few weeks and then provide a packaged copy of the files necessary to style your K2 theme with k2-james.
In the mean time you can check out my friend’s blog over at http://www.kuhlschrank.com/ to see my beta theme using a different link colour via the PHP enhanced CSS.








Andrea
July 17, 2008 at 4:16 pm
Good stuff!
James
July 19, 2008 at 11:34 pm
@Andrea: glad you like it. I’ve been tweaking it more and more over the last couple of days to the point it probably wont work with yours or anyone else’s blog anymore. I’ll have to produce two versions so one can be released to the public without requiring the same modifications I’ve made to K2 and the sidebars.