After spending too much time of my theme customization , i finished creating a beautiful style of my theme in Dark color. Not sure if the visitors like the dark styled site and to make them convenient , I want to provide an option to switch to white colored style with a simple feature to switch.
I know that several template vendors use such feature to show case their theme and enable visitors to switch between color styles on front end of their demo site's itself. I want to have the same feature for my site . On the top corner of front page my visitors should have two buttons to switch between black and white styles. Googled for such tutorial , failed to find one for me.
Found such a tutorial here . But not with much help
I am not expert in coding, but can do with some guide/tutorial. Could any one help me with such tutorial to create such a featured option for my site
Check out this thread. It essentially uses the same method they describe, but I know it works... the demo on the link you shared doesn't seem to work =(
I know that several template vendors use such feature to show case their theme and enable visitors to switch between color styles on front end of their demo site's itself. I want to have the same feature for my site . On the top corner of front page my visitors should have two buttons to switch between black and white styles. Googled for such tutorial , failed to find one for me.
Found such a tutorial here . But not with much help
I am not expert in coding, but can do with some guide/tutorial. Could any one help me with such tutorial to create such a featured option for my site
Thanks !
cheers !
I have tried the source this on a wordpress installation( on localserver)
1) copied the code to header
2) Copied the two .css files style2 and style3 to the theme 's root folder. Added styleswitcher.js and images too
3) Copied style.css 's content to theme's style-sheet.
4) Finally copied this to header :
I have done without changing the code to check if it works . I can see the links on site.But no switching of styles as expected are happened.
Could any one help me to resolve the issue
Thanks
Actually moved the .js file into a custom folder named " custom-jquery " and tried this in functions.php
Could able to use the style " One " . But unable to switch to other two styles