In short : This plugin adds a dropdown list in the frontend to allow visitors to choose a different stylesheet.
Detailed :
Sometimes, we just want to offer visitors simple variations of our website theme. Sometimes, we simply want to offer a stylesheet with improved accessbility. There are plugins that let you choose a different theme, but this plugin offers you to change only the stylesheet. In the admin settings, you can configure up to 5 different stylesheets. Those possibilities are offered in a dropdown list on the front page.
The dropdown list can be put in a widget or in a page/post using the shortcode, or directly in the template using the php function.
On the frontend, when a choice is made in the dropdown list, the webpage is reload using the chosen stylesheet.
Features
* Easy installation/setup
* Up to 5 different stylesheets
* Set a default stylesheet
* Set the label for the dropdown list
* Can be used with a shortcode in a post/page, as a widget and with a php function in the theme
* Multiple instances of the dropdown list can be present on the same page.
Screenshots
Setup page in admin->settings
Widget options
Dropdown list and icon list visible in the frontend
FAQ
Why this plugin?
I couldn’t find this solution in other plugin, so I developped it. This plugin is useful when developping a website, so we can keep a few alternative stylesheet and switch back and forth, or let a client chose his favorite one.
How do you setup the css files for a child theme
In my child theme folder, my style.css file only contains the link to the original theme css: @import url(“../twentythirteen/style.css”);
Then my other files only need to override the original styles.
ChangeLog
2.2.0
- Update cookie.js
- Update readme file
- Fix Cookies conflicts
- Fix php7 warning for class constructor
2.1.1
- Update cookie.js
- Fix absence of cookie.js if no switcher loaded
- Fix WP_Widget constructor for 4.3.0
2.1.0
- Add the possibility to show link text with the icon (before, after, over or under)
- Add Serbi translations
2.0.3
- Fix stylesheet flashes when changing page
2.0.2
- Fix array initialization problem (“array()” instead of “[]”) for older php versions (< 5.4)
2.0.1
2.0.0
- Multiple different switchers
- No more page reload (using javascription instead of forms)
- Preserver user choice using a cookie
1.6.1
- Fix blank page on automatic rotation.
1.6.0
- Fix session start condition
- Option to have automatic theme rotation
- Option to chose between relative or absolu path (useful for multisites)
- Add plugin icon and banner
1.5.8
- Fix blank option update in config page
1.5.7
- Ignore empty options when using single switcher button
1.5.6
- Fix blank page when upgrading
- Add information to “Option to remove stylesheets”
1.5.5
- Fix missing js file
- Add explanation for the “no stylesheet” option.
1.5.4
- Add optional single switcher button (with text or icon) to rotate between stylesheets
- Add option to remove all styles and stylesheets.
- Increase filename maxlength
- Change stylesheet priority when loading them.
1.5.2
- Fixes default stylesheet with more then five stylesheets
1.5.1
1.5.0
- Internationalization of this plugin
- Internal update toward OOP (class for the plugin and for the widget)
1.0.1
- Set defaults to php function show_wp_user_stylesheet_switcher()
1.0.0
- Possibility to choose between an icon list of a dropdown list
- Add option to the shortcode and the widget
- Fixes layout positioning bug with Twentythirteen theme
- Manage uninstall to remove options/widgets
0.2.0
- No limits for the number of stylesheets to offer.
0.1.0
- First stable version released.