DISQUS

Dan Cameron: AJAX Style Sheet Switcher released

  • Dean · 2 years ago
    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.
  • Dan · 2 years ago
    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.
  • Melissa · 2 years ago
    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.
  • JohnP · 2 years ago
    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.
  • Alex Cragg · 2 years ago
    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
  • Alex · 2 years ago
    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, www.dev.epicskitours.com

    thanks
  • Dan · 2 years ago
    It's your placement. And if the images don't show it's your CSS.
  • Dan · 2 years ago
    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 · 2 years ago
    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 · 2 years ago
    A million thanks Dan. I edited the stylesheets as you suggested, leaving in only the changed elements. And it worked!
    Much appreciated. Ed
  • Charlie · 2 years ago
    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
  • Dan · 2 years ago
    Check how your cookies are handled with your browser because I'm not having that problem.
  • Jasmine · 2 years ago
    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?
  • Dan · 2 years ago
    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 · 2 years ago
    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.
  • Dan · 2 years ago
    Can you guys give me links to your sites with the plugin installed. It would help out because how else can I help?
  • Nick · 2 years ago
    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 · 2 years ago
    I'm having the same problem as JohnP. Anyone has a solution or suggestion?

    Thank you
  • Dan · 2 years ago
    Please supply some links.
  • George · 6 months ago
    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!