Style switcher
Permalink
Hi everyone
Greetings here from Denmark on a sunny saturday morning :0)
I have a wish about making a template where the frontend visitor is able to change colors, by means of styleswitcher.
Do any of you know if this is possible ?
I have an earlier styleswitchr made in php which keeps the style switched through keeping a SESSION alive, but I suspect this would be a problem, if I were to implement this into C5 due to the code in the top of each page:
Have any of you tried working with styleswitcher or something else solving this ?
Please respond if any.
//Carsten - Denmark
Greetings here from Denmark on a sunny saturday morning :0)
I have a wish about making a template where the frontend visitor is able to change colors, by means of styleswitcher.
Do any of you know if this is possible ?
I have an earlier styleswitchr made in php which keeps the style switched through keeping a SESSION alive, but I suspect this would be a problem, if I were to implement this into C5 due to the code in the top of each page:
Have any of you tried working with styleswitcher or something else solving this ?
Please respond if any.
//Carsten - Denmark
check out the theme switcher addon in the mp- make some different color options based on one theme and there you go.
Hi 12345j
I think I saw that one, but that particular switcher is working as a select option. However I would like to have it in use as a text link or small gif image.
So any further advise would be most welcomed :0)
//Carsten
I think I saw that one, but that particular switcher is working as a select option. However I would like to have it in use as a text link or small gif image.
So any further advise would be most welcomed :0)
//Carsten
Open theme switchers view.php and set it to display:none; then add a theme switcher block to a page- nothing should show up. Then make a link in the format of http://url of current page/?t=theme-handle where theme handle is the handle of the theme you want to switch to.
Old post I know, but I needed something similar.
I built my own, if anyone is interested here is the code.
Place in your header.php:
Place in your page:
Obviously you will need different style sheets and for now only works on current page not the whole website.
Example on demo site:http://shadow.55webdesign.co.uk/...
I built my own, if anyone is interested here is the code.
Place in your header.php:
<?php $thestyle = $_GET['set']; if ($thestyle == "two") {$thestyle = "two";} else if ($thestyle == "three") {$thestyle = "three";} else if ($thestyle == "four") {$thestyle = "four";} if ($thestyle == "five") {$thestyle = "five";} else {$thestyle = "one"; }
Viewing 15 lines of 17 lines. View entire code block.
Place in your page:
<p><a href="?set=one">Default</a></p> <p><a href="?set=two">Blue</a></p> <p><a href="?set=three">Yellow</a></p> <p><a href="?set=four">Green</a></p> <p><a href="?set=five">Black</a></p>
Obviously you will need different style sheets and for now only works on current page not the whole website.
Example on demo site:http://shadow.55webdesign.co.uk/...