one review done, another article sort of half done desktop defragging, I'm off to bed! 8 hrs ago

Articles tagged with 'JQuery'

  • Date
  • Thursday, October 9, 2008
  • Author
  • Corey Dutson

Colour Swapper in Wordpress

Who likes web­site colour swap­pers? Anyone?

When I devel­oped the theme I am cur­rently using, I searched high and low for some­thing I could steal take inspi­ra­tion from. The funny thing is that most people don’t even know where the colour swap­per is on my site. So few in fact that I had to add a cap­tion to it to help make it a little more obvious.

In any case I felt that I would share the method I used to create the swap­ping func­tion­al­ity on my web­site. I’m aware that most of it can be fig­ured out with a little imag­i­na­tion and some source view­ing, but I think that going through it step by step is more helpful.

UPDATE - 10/09/2008 - In record time, a second pair of eyes look­ing at this has man­aged to refine the process. Thank you Bart for point­ing out that if the CSS files are named the same as the Title attribute of the Anchor, then you can drop the whole If state­ment. I’ve updated the tuto­r­ial accordingly