1265 posts
  • Pulled off some great moustache to raise money or awareness for Movember Australia
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
harmonikas996 says

Hey folks! Does anyone have (and want to share) style switcher script for templates? I need simple color scheme change, background change, and maybe font change.

Also, If you have any PREMIUM script, feel free to send me link via contact form on my profile.

Appreciate your help!

1265 posts
  • Pulled off some great moustache to raise money or awareness for Movember Australia
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
harmonikas996 says

BringUpMyPost

1498 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+9 more
ImanGM says

Hey harmonikas996,

This is what I prefer to do. First add a style section in your header:
jQuery('<style type="text/css" id="style_switcher" />').appendTo('head');
Then, use events and insert some CSS inside the style block:
jQuery('.switcher_color').click(function() {
    if ( jQuery(this).hasClass('switcher_blue_dark') ) {
        jQuery('#style_switcher').html(
               // Write you own styles here
               ' a { color: #123456; } ' + 
               '...' +
               '...';)
    }
});

I wish this will help. Actually you have to create your own switcher based on the features that your theme has…

Cheers

1265 posts
  • Pulled off some great moustache to raise money or awareness for Movember Australia
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
harmonikas996 says

Hey harmonikas996, This is what I prefer to do. First add a style section in your header:
jQuery('<style type="text/css" id="style_switcher" />').appendTo('head');
Then, use events and insert some CSS inside the style block:
jQuery('.switcher_color').click(function() {
    if ( jQuery(this).hasClass('switcher_blue_dark') ) {
        jQuery('#style_switcher').html(
               // Write you own styles here
               ' a { color: #123456; } ' + 
               '...' +
               '...';)
    }
});

I wish this will help. Actually you have to create your own switcher based on the features that your theme has…

Cheers

Thank you, sir.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by