Style Switcher
-
I’ve used a styleswitcher script on previous versions of websites (not WordPress driven) and it worked like a charm. You need to define each stylesheet within the head section of the page, each one with a title. For example:
<link href=”css/styles.css” rel=”stylesheet” type=”text/css” title=”default” />
<link href=”css/green.css” rel=”alternate stylesheet” type=”text/css” title=”green” />
<link href=”css/blue.css” rel=”alternate stylesheet” type=”text/css” title=”blue” />
When trying to do this on a WordPress driven website, the moment I add title=”default” to my default stylesheet link I lose all styles on the page. If I remove the title=”default” the styles return.
Does WordPress not like title=”default”?
I was thinking it was my syntax but I double checked and it doesn’t look like I’m missing anything.
Any feedback is appreciated. Thanks!
The topic ‘Style Switcher’ is closed to new replies.