Basically not allowed to use the demo style switcher.
I am struggling to find a styleswitcher, i just need a simple way to give the user the option to turn on a contrast stylesheet, for accessibility reasons.Tried all the plugins non are compatible with propulsion :(
In the comments at th bottom of that page people were compalinign of multiple stylesheets and this mod stops those from working:
“For Matt and others who are having trouble with this script affecting multiple stylesheets on the same document:
You can limit the application of stylesheet switch by using JQuery selectors. For example, if you only want sheets with the common name “main” in them, i.e. “main1.css” and “main_blue.css”, you should change $(“link”).attr(“href”,$.cookie(“css”)); to $(‘link[href*="main"]‘).attr(“href”,$(this).attr(‘rel’));
You can also add custom attribute to your stylesheet tag and change the selector to something like $(‘link[custom_attribute="attribute_val"]‘)
Just wondering if any mods can just help on this, as i can do most just don;t get how to get this working with propulsion.
I apologize to the mods who think this is irrelevant on here, just really desperate!
Viewing 1 post (of 1 total)
The topic ‘General style switcher for Propsulsion’ is closed to new replies.