Title: Per Page Sidebars
Author: Brian Layman
Published: <strong>2010 年 8 月 26 日</strong>
Last modified: 2018 年 3 月 14 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/per-page-sidebars.svg)

# Per Page Sidebars

 作者：[Brian Layman](https://profiles.wordpress.org/brianlayman/)

[下载](https://downloads.wordpress.org/plugin/per-page-sidebars.zip)

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

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

## 屏幕截图

 * [[
 * This is the metabox that appears on any page or post you are editing. It shows
   a list of all sidebars/widget areas built into the current theme. To replace 
   one of them with a custom sidebar, you just need to mark the sidebar you are 
   to replace.
 * [[
 * Under Appearance->Widgets, for each page or post on you’ve activated a custom
   sidebar, you will see a widget area like this one – named after the post or page
   on which it will be used.
 * [[
 * This plugin adds a “Custom Sidebar” metabox to the edit screens for pages and
   posts. Leaving the “Activate Custom Sidebar” box unchecked means that the plugin
   does not change the behavior of that page/post.
 * [[
 * This screenshot shows a typical blog running the 2010 theme and displaying the
   default sidebar.
 * [[
 * On the edit screen for any page or post, to create a custom sidebar, simply check“
   Activate Custom Sidebar” and choose the sidebar you will be replacing.
 * [[
 * When you activate a custom sidebar on a page or post, the Appearance->Widgets
   screen gets a widget area created for that page or post.
 * [[
 * Any widgets you put in the custom sidebar’s widget area will be displayed with
   that page or post, completely replacing the chosen sidebar.
 * [[

## 安装

The installation process.

 1. Upload to the `/wp-content/plugins/` directory. Or directly upload from your Plugin
    management page.
 2. 通过WordPress的“插件”菜单激活插件

## 常见问题

  Installation Instructions

The installation process.

 1. Upload to the `/wp-content/plugins/` directory. Or directly upload from your Plugin
    management page.
 2. 通过WordPress的“插件”菜单激活插件

  Can I replace more than one sidebar per page?

Currently only one sidebar can be replaced per page. If you wish to replace multiple
sidebars per page, leave a commment and I may add this feature.

  Can I replace sidebars on posts or custom post types?

YES! Version 2 and newer of the plugin allows sidebars on posts and I believe custom
post types as well. This feature has not been heavily tested. If you encouter any
issues, please let me know.

  Can my authors & contributors replace the sidebar on a page?

A user can only replace a sidebar on a page if their role has the _edit\_theme\_options_
capability. A user can edit a page that has been assigned custom sidebar and that
custom sidebar will not be dropped. A user without the _edit\_theme\_options_ capability
simply cannot turn that functionality on or off.

  My left sidebar was replaced on the parent but it not on the child, why?

Some themes allow you to chose different sidebar layouts on each page. Sometimes
these themes rely on a Primary/Secondary Sidebar configuration rather than a Right/
Left sidebar convention. This may lead to confusion when the parent displays two
sidebars and the child only displays one. This plugin replaces the sidebar by name
not by position. In a 2 column layout, the only sidebar is by definition the “Primary”
sidebar. Replacing a “Secondary” sidebar in the parent page will not alter the appearance
of 2 column child page if the “Secondary” sidebar is never displayed.

## 评价

![](https://secure.gravatar.com/avatar/560b13afb1ebd63aec515e31b6bb95065cf7b908f22fc0f7b95e195642e95546?
s=60&d=retro&r=g)

### 󠀁[GREAT](https://wordpress.org/support/topic/great-4248/)󠁿

 [programmerdancuk](https://profiles.wordpress.org/programmerdancuk/) 2016 年 9 
月 3 日

This plugin is exactly what I want

![](https://secure.gravatar.com/avatar/25a37a831197fa3bae28211934b829bc6a3ec4c609779a2c216de188a50a8ee9?
s=60&d=retro&r=g)

### 󠀁[Useful plugin – but would like to be able to edit widget title](https://wordpress.org/support/topic/useful-plugin-but-would-like-to-be-able-to-edit-widget-title/)󠁿

 [perryb](https://profiles.wordpress.org/perryb/) 2016 年 9 月 3 日

This is a really useful plug in. The one thing I really would like to have at my
disposal from the off would be the ability to edit the widget title (e.g. “PPS-page-
slug” makes it slightly less user friendly in my view) and perhaps a note in Widget
admin to say which widget is being replaced. Great stuff though!

 [ 阅读所有10条评价 ](https://wordpress.org/support/plugin/per-page-sidebars/reviews/)

## 贡献者及开发者

「Per Page Sidebars」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Brian Layman ](https://profiles.wordpress.org/brianlayman/)

[帮助将「Per Page Sidebars」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/per-page-sidebars)

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.3

 * Updated version for the current release
 * Added further bullet proofing
 * Fixed an issue with drafts not producing a properly named sidebar

#### 2.0.2

 * Updated version for the current release

#### 2.0.1

(Unreleased)

 * Updated for the current release
 * Added code to support sidebars on the home page

#### 2.0.0

 * Added the ability to activate custom sidebars on posts
 * Fixed a bug that caused the wrong custom sidebar to be displayed on the page 
   that was assigned as the Post page
 * Added screenshots and video to the documentation of the plugin

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **2.0.3**
 *  最后更新：**8 年前**
 *  活跃安装数量 **900+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/per-page-sidebars/)
 * 标签
 * [pages](https://cn.wordpress.org/plugins/tags/pages/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [sidebars](https://cn.wordpress.org/plugins/tags/sidebars/)[widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/per-page-sidebars/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/per-page-sidebars/reviews/?filter=5)
 *  [  3 条 4 星评价     ](https://wordpress.org/support/plugin/per-page-sidebars/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/per-page-sidebars/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/per-page-sidebars/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/per-page-sidebars/reviews/?filter=1)

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

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

## 贡献者

 *   [ Brian Layman ](https://profiles.wordpress.org/brianlayman/)

## 支持

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

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