Here’s the Nettuts tutorial:
http://net.tutsplus.com/tutorials/javascript-ajax/jquery-style-switcher/
I used this technique more or less for my Steelfolio theme, but for Journey I used the first one:
http://www.kelvinluck.com/2006/05/switch-stylesheets-with-jquery/
Neither technique is perfect… that’s why I’m planning to write my own jquery style switcher plugin some day.
In the meantime, here’s how you would add cookie support to Journey.
- Download and include the jquery cookie plugin
- Add this line to the end of function “switchStylestyle” (the name is stupid I know, I just copied it from that link):
$.cookie(‘myStyle’,styleName);
- Add this line anywhere in the document.ready() jquery block:
if($.cookie(‘myStyle’)){
switchStylestyle($.cookie(‘myStyle’));
}
That’s it ! Don’t forget to do this for all your html files, otherwise it won’t work across the site.
I’ve added cookie support to the template files, so if you don’t want to do it manually you can just download them again (I’ll tell you when my update has been aproved and the files are actually updated).