Linux 软件免费装
Banner图

Z Theme Switcher

开发者 martenmoolenaar
zodannl
更新时间 2025年6月21日 09:37
捐献地址: 去捐款
PHP版本: 5.5 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

development theme development switch theme

下载

1.2

详情介绍:

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

安装:

Install the Theme Switcher from within WordPress
  1. Visit the plugins page within your dashboard and select ‘Add New’;
  2. Search for ‘Z Theme Switcher’;
  3. Activate the plugin from your Plugins page;
  4. Go to ‘after activation’ below.
Install manually
  1. Unzip the Theme Switcher zip file
  2. Upload the unzipped folder to the /wp-content/plugins/ directory;
  3. Activate the plugin through the ‘Plugins’ menu in WordPress;
  4. Go to ‘after activation’ below.
After activation
  1. On the Plugins page in WordPress you will see a 'settings' link below the plugin name;
  2. On the Theme Switcher settings page: ** Select the theme you want to be able to switch to ** Select the roles with the permission to switch
  3. Save your settings and you’re done!

常见问题:

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): <?php do_action('z_theme_switcher_show_toggle'); ?>

Do you have plans to improve the plugin?

We currently have on our roadmap:

  • Adding translations
  • Adding a custom capability (to be used next to roles, for those who want to add a custom role)
  • Set the preference per user If you have a feature suggestion, send us an email at plugins@zodan.nl.

更新日志:

1.2 1.1 1.0