| 开发者 | sethsm |
|---|---|
| 更新时间 | 2026年6月11日 02:14 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
slim-mobile-theme-switcher folder to the /wp-content/plugins/ directory.You can append query strings to your URLs to allow users to switch themes manually.
yoursite.com/?theme=handheldyoursite.com/?theme=tabletyoursite.com/?theme=activeYou can add a link to your mobile theme's footer: <a href="?theme=active">View Full Site</a>
Simply add ?theme=handheld to any URL on your site. To go back to the default/desktop view, use ?theme=active.
For best results, exclude the theme query parameter from your cache. If your host supports it, enable "Vary by User-Agent" or "Mobile Caching".
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.
For best results, exclude the theme query parameter from your cache. If your host supports it, enable "Vary by User-Agent" or "Mobile Caching".