Title: York IE &#8211; Theme Switcher
Author: yorksupport
Published: <strong>2026 年 6 月 18 日</strong>
Last modified: 2026 年 6 月 18 日

---

搜索插件

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

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

# York IE – Theme Switcher

 作者：[yorksupport](https://profiles.wordpress.org/yorksupport/)

[下载](https://downloads.wordpress.org/plugin/page-theme-switcher.1.5.3.zip)

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

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

## 描述

York IE – Theme Switcher lets editors assign a theme to a single piece of content
or preview how that content looks in another installed theme. The site-wide active
theme stays unchanged.

**Features**

 * Assign a theme per post, page, or public custom post type
 * Settings page to enable theme switching per post type
 * Preview any supported item with another installed theme in a new tab
 * Content Theme meta box in the editor sidebar
 * Front-end admin bar menu for quick theme previews while logged in
 * Preview banner with an exit link when previewing
 * Works with subdirectory WordPress installs

**How it works**

 1. Edit a post, page, or custom post type.
 2. Choose a theme from the **Content Theme** sidebar panel.
 3. Click **Update** to save the assignment, or use **Preview with selected theme**
    to test without saving.

Visitors see the assigned theme only on that content item. Other pages continue 
using the active site theme.

**Permissions**

 * Theme preview URLs require a valid nonce and permission to edit the item or the`
   switch_themes` capability.
 * Assigned themes are visible to all visitors on the front end for that content
   item.

**Developer filters**

 * `pagethsw_supported_post_types` — Limit or extend supported post types.
 * `pagethsw_is_supported_post_early` — Control post type support before `init`.

## 屏幕截图

[⌊Content Theme panel in the editor sidebar.⌉⌊Content Theme panel in the editor 
sidebar.⌉[

Content Theme panel in the editor sidebar.

[⌊Theme preview banner on the front end.⌉⌊Theme preview banner on the front end.⌉[

Theme preview banner on the front end.

[⌊Content Theme menu in the admin bar.⌉⌊Content Theme menu in the admin bar.⌉[

Content Theme menu in the admin bar.

## 安装

 1. Install the plugin through the WordPress Plugins screen.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Edit any supported post, page, or custom post type and use the **Content Theme**
    panel in the sidebar.
 4. Go to **Settings  York IE – Theme Switcher** to choose which post types are enabled.

## 常见问题

### Does this change the active theme for the whole site?

No. It only changes the theme used for the selected content item. The active theme
under **Appearance  Themes** is not modified.

### Which content types are supported?

Public post types with an admin UI are supported by default, including posts, pages,
and custom post types. Attachments, revisions, templates, and other internal post
types are excluded.

### Why can I preview a theme but visitors still see the default theme?

Preview mode is for logged-in users with permission to edit the item. To apply a
theme for everyone, choose a theme in **Content Theme**, save the item, and open
the public URL without preview query arguments.

### Can I limit which post types show the Content Theme panel?

Yes. Open **Settings  York IE – Theme Switcher** and check only the post types you
want. Developers can use the `pagethsw_supported_post_types` filter.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ yorksupport ](https://profiles.wordpress.org/yorksupport/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.5.3

 * Update plugin branding to York IE – Theme Switcher.

#### 1.5.2

 * Remove deprecated `pts_` filter hooks; use `pagethsw_` filters only.

#### 1.5.1

 * Rename plugin to York IE – Theme Switcher.

#### 1.5.0

 * Prefix all options, meta keys, hooks, and identifiers with `pagethsw_` per WordPress.
   org guidelines.
 * Migrate legacy `pts_` data automatically on upgrade.

#### 1.4.1

 * Fix Plugin Check database query warnings for slug-based post lookups.

#### 1.4.0

 * Add settings page to enable theme switching per post type.

#### 1.3.2

 * Fix Plugin Check input sanitization and nonce verification warnings.

#### 1.3.1

 * Fix Plugin Check database escaping warnings in post lookup queries.

#### 1.3.0

 * Prepare plugin for WordPress.org distribution.
 * Add uninstall routine and directory submission files.

#### 1.2.3

 * Fix saved theme assignments for custom post types before `init`.
 * Improve URL resolution for subdirectory installs.

#### 1.2.2

 * Remove duplicate block editor sidebar panel.

#### 1.2.1

 * Include pages in supported post types.

#### 1.2.0

 * Add support for posts and custom post types.
 * Fix block editor saving and subdirectory permalink handling.

#### 1.0.0

 * Initial release with per-page theme assignment and preview.

## 额外信息

 *  版本 **1.5.3**
 *  最后更新：**2 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/page-theme-switcher/)
 * 标签
 * [preview](https://cn.wordpress.org/plugins/tags/preview/)[switch theme](https://cn.wordpress.org/plugins/tags/switch-theme/)
   [switcher](https://cn.wordpress.org/plugins/tags/switcher/)[theme](https://cn.wordpress.org/plugins/tags/theme/)
   [Theme Switcher](https://cn.wordpress.org/plugins/tags/theme-switcher/)
 *  [高级视图](https://cn.wordpress.org/plugins/page-theme-switcher/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ yorksupport ](https://profiles.wordpress.org/yorksupport/)

## 支持

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

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