Linux 软件免费装
Banner图

Slim Mobile Theme Switcher

开发者 sethsm
更新时间 2026年6月11日 02:14
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

responsive mobile mobile theme theme switcher device theme

下载

1.0.0 1.1.0

详情介绍:

Ever wanted to serve a dedicated theme to visitors on handheld devices instead of a theme that is fine-tuned for big screen traffic? Slim Mobile Theme Switcher is a highly optimized, lightweight plugin designed for websites that need to serve a different theme to mobile devices while preserving the primary desktop experience. Instead of relying on clunky, resource-heavy device detection libraries, this plugin uses streamlined, modern user-agent detection to instantly route users to the correct theme before the page even loads.

安装:

  1. Upload the slim-mobile-theme-switcher folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to Settings > Slim Mobile Theme Switcher to select your mobile and desktop themes.

升级注意事项:

1.0.0
  • Initial release.

常见问题:

How do I manually force a specific theme?

You can append query strings to your URLs to allow users to switch themes manually.

How do I add a "View Full Site" link?

You can add a link to your mobile theme's footer: <a href="?theme=active">View Full Site</a>

How do I link to the mobile version manually?

Simply add ?theme=handheld to any URL on your site. To go back to the default/desktop view, use ?theme=active.

What should I configure in my caching plugin?

For best results, exclude the theme query parameter from your cache. If your host supports it, enable "Vary by User-Agent" or "Mobile Caching".

Why isn't my theme switching?

The most common cause is Page Caching. If your host (like WP Engine or Kinsta) or a plugin (like WP Rocket) caches the desktop version of a page, it may serve that cached HTML to mobile users regardless of this plugin. Please ensure "Mobile Caching" or "User-Agent Vary" is enabled in your caching setup.

What should I configure in my caching plugin?

For best results, exclude the theme query parameter from your cache. If your host supports it, enable "Vary by User-Agent" or "Mobile Caching".

更新日志:

1.1.0 1.0.0