Title: Slim Mobile Theme Switcher
Author: Seth Smigelski
Published: <strong>2026 年 3 月 10 日</strong>
Last modified: 2026 年 6 月 10 日

---

搜索插件

![](https://ps.w.org/slim-mobile-theme-switcher/assets/banner-772x250.png?rev=3479290)

![](https://ps.w.org/slim-mobile-theme-switcher/assets/icon-256x256.png?rev=3479290)

# Slim Mobile Theme Switcher

 作者：[Seth Smigelski](https://profiles.wordpress.org/sethsm/)

[下载](https://downloads.wordpress.org/plugin/slim-mobile-theme-switcher.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/slim-mobile-theme-switcher/#description)
 * [评价](https://cn.wordpress.org/plugins/slim-mobile-theme-switcher/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/slim-mobile-theme-switcher/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/slim-mobile-theme-switcher/#developers)

 [支持](https://wordpress.org/support/plugin/slim-mobile-theme-switcher/)

## 描述

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.

### Key Features

 * **Three-way Theme Routing:** Serve up to three different themes simultaneously.
   Set one theme for Mobile Phones, one for Desktops, and optionally enable a dedicated
   theme specifically for Tablets (iPads/Android tablets).
 * **True Mobile Detection:** Uses refined regex to separate small-screen phones
   from tablets (iPads/Android tablets).
 * **Zero-Friction Setup:** Select your themes from a simple dropdown menu. No coding
   required.
 * **Manual Overrides:** Allow users to manually switch between views using `?theme
   =handheld` or `?theme=active` or `?theme=tablet`.
 * **Persistent Choice:** Activating the ‘Remember Visitor’s Choice’ option ensures
   that when a user has manually selected a different theme, this preference is 
   saved for 30 days via cookies.
 * **No Bloat:** Zero front-end CSS or JS added by the plugin itself.
 * **Developer Friendly:** Built by a developer for developers.

## 屏幕截图

[⌊The settings page where you can choose your mobile and desktop themes.⌉⌊The settings
page where you can choose your mobile and desktop themes.⌉[

The settings page where you can choose your mobile and desktop themes.

## 安装

 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.

## 常见问题

### How do I manually force a specific theme?

You can append query strings to your URLs to allow users to switch themes manually.
*
Mobile Theme: `yoursite.com/?theme=handheld` * Tablet Theme: `yoursite.com/?theme
=tablet` * Desktop Theme: `yoursite.com/?theme=active`

### 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Slim Mobile Theme Switcher」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Seth Smigelski ](https://profiles.wordpress.org/sethsm/)

[帮助将「Slim Mobile Theme Switcher」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/slim-mobile-theme-switcher)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/slim-mobile-theme-switcher/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/slim-mobile-theme-switcher/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/slim-mobile-theme-switcher/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/slim-mobile-theme-switcher/)。

## 更新日志

#### 1.1.0

 * **Feature:** Added dedicated Tablet Theme routing. You can now serve unique themes
   to Mobile, Tablet, and Desktop users independently.
 * **Feature:** Added a persistent cookie (30 days) to remember a visitor’s manual
   theme override choice.
 * **Tweak:** Completely overhauled the mobile detection logic for better accuracy
   across modern devices.
 * **DEV:** Tested Up To WordPress 7.0.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/slim-mobile-theme-switcher/)
 * 标签
 * [mobile](https://cn.wordpress.org/plugins/tags/mobile/)[mobile theme](https://cn.wordpress.org/plugins/tags/mobile-theme/)
   [responsive](https://cn.wordpress.org/plugins/tags/responsive/)[Theme Switcher](https://cn.wordpress.org/plugins/tags/theme-switcher/)
 *  [高级视图](https://cn.wordpress.org/plugins/slim-mobile-theme-switcher/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/slim-mobile-theme-switcher/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/slim-mobile-theme-switcher/reviews/)

## 贡献者

 *   [ Seth Smigelski ](https://profiles.wordpress.org/sethsm/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/slim-mobile-theme-switcher/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/donate/?hosted_button_id=M3B2Q94PGVVWL)