AJAX Style Sheet Switcher released

“CSS AJAX Switch is a WordPress Plugin that allows for CSS switching without any reload. It stores the selection for future visits, incorporates an admin panel for configuration and is widgetized and ready to use.” Easy to install and start using. WordPress 2.1 required for this first release.

read more | digg story

About the Author, Dan Cameron:

I'm the owner and solution engineer , a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

  • http://www.deanjrobinson.com Dean

    Very nice Dan, I might have to look into making this work completely with the dynamic css thats built into Redoable, which will have about 16 colours combinations available when 1.2 is released.

    Keep up the good work, I’m liking all the little changes you’ve made to the theme too.

  • http://www.deanjrobinson.com Dean

    Very nice Dan, I might have to look into making this work completely with the dynamic css thats built into Redoable, which will have about 16 colours combinations available when 1.2 is released.

    Keep up the good work, I’m liking all the little changes you’ve made to the theme too.

  • http://dancameron.org Dan

    Dean: I can make it an SBM if you’d like. It wouldn’t be too hard. I could also make some colored icons instead of the standard that I included now. Otherwise just contact me if you need some help, it’s a fairly simple plugin.

  • http://melissa.misstuned.com Melissa

    This plugin was exactly what I was looking for. I’ve got it simply changing the colour scheme on my site at the moment, but I have plans for more.

    Great plugin, thank you.

  • http://melissa.misstuned.com Melissa

    This plugin was exactly what I was looking for. I’ve got it simply changing the colour scheme on my site at the moment, but I have plans for more.

    Great plugin, thank you.

  • http://motuweb.com JohnP

    On WP 2.1 with default theme and no other plugins activated, pages load OK at first but when I click xxx/blog/index.php?css=INCREASE FONT I get the error:

    Warning: Cannot modify header information – headers already sent by (output started at xxx/blog/wp-content/themes/default/header.php:2) in xxx/blog/wp-content/plugins/css-switch/css-switch.php on line 134

    I have the CSS Name configured correctly, I can see the alternative stylesheets eg: xxx/wp-content/plugins/css-switch/css-container/font-increase.css, I’ve checked css-switch.php and header.php for leading/trailing spaces, cleared cookies, but still no success.

    Any further suggestions will be appreciated.

  • http://motuweb.com JohnP

    On WP 2.1 with default theme and no other plugins activated, pages load OK at first but when I click xxx/blog/index.php?css=INCREASE FONT I get the error:

    Warning: Cannot modify header information – headers already sent by (output started at xxx/blog/wp-content/themes/default/header.php:2) in xxx/blog/wp-content/plugins/css-switch/css-switch.php on line 134

    I have the CSS Name configured correctly, I can see the alternative stylesheets eg: xxx/wp-content/plugins/css-switch/css-container/font-increase.css, I’ve checked css-switch.php and header.php for leading/trailing spaces, cleared cookies, but still no success.

    Any further suggestions will be appreciated.

  • http://www.epicskitours.com Alex Cragg

    hmmmm
    Nothing happens at all…
    I have done the following:
    placed my style sheet in the css-container file,
    changed the increase and decrease css files to my whole normal css file, with different text sizes
    put links to these files in the sidebar setup bit,

    what have i done wrong, im using ff2.

    thanks

  • http://www.epicskitours.com Alex Cragg

    hmmmm
    Nothing happens at all…
    I have done the following:
    placed my style sheet in the css-container file,
    changed the increase and decrease css files to my whole normal css file, with different text sizes
    put links to these files in the sidebar setup bit,

    what have i done wrong, im using ff2.

    thanks

  • http://www.epicskitours.com Alex

    ok, ive got it working, but the two icons are above each other, not side by side, and some of my images disappear when i click them.

    check out my dev site, http://www.dev.epicskitours.com

    thanks

  • http://www.epicskitours.com Alex

    ok, ive got it working, but the two icons are above each other, not side by side, and some of my images disappear when i click them.

    check out my dev site, http://www.dev.epicskitours.com

    thanks

  • http://dancameron.org Dan

    It’s your placement. And if the images don’t show it’s your CSS.

  • http://dancameron.org Dan

    It looks like your images aren’t loading. All I can say is check your CSS because that’s all this plugin does is activate one style sheet after another.

    Also, make sure your browser cache is cleared, that might be the problem although I’ve never seen it happen.

  • Eddie

    Thanks for reply Dan.

    It’s the same effect with images inserted, I have done another screenprint to illustrate this.
    SEE http://www.flickr.com/photos/ebyrne41/443714327/

    I cleard cache also, no difference. It’s the same effect in Firefox and IE by the way.

    I will trawl through the stylesheet, but I know I changed nothing other than the font size, so I expect that to show up nothing. I’s just so puzzling, and I can’t live with the effect I’m afraid, so I have to de-activate it unless and until I find a solution. Meanwhile I’ll use another plugin that is more limited and works with posts, but not pages(!) (WP – Writing change [fontsize and font]).

    Thanks again anyway. If a solution comes to mind you might let me know. Cheers. Ed

  • http://dancameron.org Dan

    It looks like your images aren’t loading. All I can say is check your CSS because that’s all this plugin does is activate one style sheet after another.

    Also, make sure your browser cache is cleared, that might be the problem although I’ve never seen it happen.

  • Eddie

    Thanks for reply Dan.

    It’s the same effect with images inserted, I have done another screenprint to illustrate this.
    SEE http://www.flickr.com/photos/ebyrne41/443714327/

    I cleard cache also, no difference. It’s the same effect in Firefox and IE by the way.

    I will trawl through the stylesheet, but I know I changed nothing other than the font size, so I expect that to show up nothing. I’s just so puzzling, and I can’t live with the effect I’m afraid, so I have to de-activate it unless and until I find a solution. Meanwhile I’ll use another plugin that is more limited and works with posts, but not pages(!) (WP – Writing change [fontsize and font]).

    Thanks again anyway. If a solution comes to mind you might let me know. Cheers. Ed

  • Eddie

    A million thanks Dan. I edited the stylesheets as you suggested, leaving in only the changed elements. And it worked!
    Much appreciated. Ed

  • Eddie

    A million thanks Dan. I edited the stylesheets as you suggested, leaving in only the changed elements. And it worked!
    Much appreciated. Ed

  • Charlie

    Hi Dan

    I have been trying to implement this on my site however the style does not persist when I jump from page to page i.e. I change the style and then select a link to a new style. I noticed this is the case on your site too.

    Is this how you intended it to work or have I missed something?

    Thanks

  • http://dancameron.org Dan

    Check how your cookies are handled with your browser because I’m not having that problem.

  • Charlie

    Hi Dan

    I have been trying to implement this on my site however the style does not persist when I jump from page to page i.e. I change the style and then select a link to a new style. I noticed this is the case on your site too.

    Is this how you intended it to work or have I missed something?

    Thanks

  • http://chibilicious.com Jasmine

    Im actually having the same problem too.

    My styles do not remain when I jump from page to page.

    I have already deleted the cookies (using IE and Opera) but the problem still persists. :(

    Is there a way to fix this?

  • http://chibilicious.com Jasmine

    Im actually having the same problem too.

    My styles do not remain when I jump from page to page.

    I have already deleted the cookies (using IE and Opera) but the problem still persists. :(
    Is there a way to fix this?

  • http://dancameron.org Dan

    It’s not that you need to get rid of your cookies it’s that the browser isn’t creating them. If you already deleted all of your cookies, close the browser and go back to the site and check to see if a cookie was created, if not then you know.

  • Nick

    Hi! I’m seeing similar results to Jasmine. I’ve checked your own site on OS X/Safari Firefox; XP/IE7 Firefox. Individual pages switch colors nicely, but the results don’t persist when navigating from page to page. Interesting.

  • http://dancameron.org Dan

    Can you guys give me links to your sites with the plugin installed. It would help out because how else can I help?

  • Nick

    Unfortunately my test install is on an internal staging server. I can take a screen video of navigating and using the plugin on this site, though, and show you what I mean… I’ll give it a shot later today.

  • vullunfestuc

    I’m having the same problem as JohnP. Anyone has a solution or suggestion?

    Thank you

  • http://dancameron.org Dan

    Please supply some links.

  • vullunfestuc

    I’m having the same problem as JohnP. Anyone has a solution or suggestion?

    Thank you

  • George

    hi, do you have an updated version of this plugin? i think it would deliver exactly what i need: i want (unregistered) visitors to be able to choose between different themes. like this i could have a default theme, but those visitors who don't like it could switch to another theme.

    thanks!