Zodan Theme Switcher
When we are developing themes, we quite often like to switch between the old (active) and the new (to develop) version of a theme. Sometimes without other people noticing. This plugin does exactly that. What does it do? It lets users with certain roles see another (than the currently active) theme,
About this tool.
When we are developing themes, we quite often like to switch between the old (active) and the new (to develop) version of a theme. Sometimes without other people noticing. This plugin does exactly that.
What does it do?
It lets users with certain roles see another (than the currently active) theme, by * Selecting a theme from the list of installed themes * Selecting which user roles are permitted to switch themes and * Optionally, selecting user roles that can use a ‘switch theme/back’ button on the front-end
This plugin is under active development. Any feature requests are welcome at plugins@zodan.nl !
Getting started.
Install the Theme Switcher from within WordPress
- 01Visit the plugins page within your dashboard and select ‘Add New’;
- 02Search for ‘Zodan Theme Switcher’;
- 03Activate the plugin from your Plugins page;
- 04Go to ‘after activation’ below.
Install manually
- 05Unzip the Theme Switcher zip file
- 06Upload the unzipped folder to the /wp-content/plugins/ directory;
- 07Activate the plugin through the ‘Plugins’ menu in WordPress;
- 08Go to ‘after activation’ below.
After activation
- 09On the Plugins page in WordPress you will see a ‘settings’ link below the plugin name;
- 10On the Theme Switcher settings page: ** Select the theme you want to be able to switch to ** Select the roles with the permission to switch
- 11Save your settings and you’re done!
Frequently asked questions.
Does it work in a multisite environment?
Yep. It does.
The Switch theme button on the front-end is not showing, can you help?
Hm. It could be that you are using a theme that does not call wp_footer() (which is the hook it is linked to). In that case, you can use the custom hook/action for this. Just add the following php code (make sure it is somehow called on every page):