hello
thank you for this tool

i need to be able to choose a default css

i have :
* black.css
* white.css

and the default one is black.css
so if i want it to be loaded by default, i need to load the black one with

stylesheets[all][] = black.css ( if i dont do this, no one is loaded by default )
styleswitcher[css][Black] = black.css
styleswitcher[css][White] = white.css

and then i have 2 times the black.css

Comments

zroger’s picture

you would need to specify a styleswitcher default like this:

styleswitcher[default] = Black
styleswitcher[css][Black] = black.css
styleswitcher[css][White] = white.css
ssm2017 Binder’s picture

Status: Active » Closed (fixed)

thank you
this is working :)

thinkinkless’s picture

this does not work for anon users...
(no default theme loading) - have dumped cache, re-saved themes page etc.
ideas?

najibx’s picture

as with the example, adding styleswitcher[default] = Black
not working for me, even for root user.

if duplicated css, works in FF (i think) but in IE when click on other menu, it back to original(default)

radziaziz’s picture

This solution is working fine as well with drupal7. Just hope this guide is written at download page (http://drupal.org/project/styleswitcher) to further assist newbie like me.

Thank you.

danny englander’s picture

Though this method is working for me, I am getting massive errors in my log, just curous if anyone else is. I posted an issue: Error: default in styleswitcher_block_view