Title: WooSidebars
Author: WooThemes
Published: <strong>2012 年 12 月 4 日</strong>
Last modified: 2024 年 4 月 3 日

---

搜索插件

![](https://ps.w.org/woosidebars/assets/banner-772x250.png?rev=633896)

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

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

# WooSidebars

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

[下载](https://downloads.wordpress.org/plugin/woosidebars.1.4.6.zip)

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

 [支持](https://wordpress.org/support/plugin/woosidebars/)

## 描述

With WooSidebars, it’s possible to change the widgets that display in a sidebar (
widgetized area) according to a context (for example, a specific page, a specific
blog post, certain categories or the search results screen). Setting up a custom
widget area to display across multiple conditions is as easy as a few clicks.

Looking for a helping hand? [View plugin documentation](https://woocommerce.com/documentation/plugins/woosidebars/).

Looking to contribute code to this plugin? [Fork the repository over at GitHub](https://github.com/woocommerce/woosidebars/).
Please also read the CONTRIBUTING.md file, bundled within this plugin.

## 屏幕截图

 * [[
 * The list of custom widget areas.
 * [[
 * Adding a custom widget area.

## 安装

#### Minimum Requirements

 * WordPress 3.3 or greater
 * PHP version 5.2.4 or greater
 * MySQL version 5.0 or greater

#### Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t even need to leave your web browser. To do an automatic install
of WooSidebars, log in to your WordPress admin panel, navigate to the Plugins menu
and click Add New.

In the search field type “WooSidebars” and click Search Plugins. Once you’ve found
our widget areas plugin you can view details about it such as the point release,
rating and description. Most importantly of course, you can install it by simply
clicking Install Now. After clicking that link you will be asked if you’re sure 
you want to install the plugin. Click yes and WordPress will automatically complete
the installation.

#### Manual installation

The manual installation method involves downloading WooSidebars and uploading it
to your webserver via your favourite FTP application.

 1. Download the plugin file to your computer and unzip it
 2. Using an FTP program, or your hosting control panel, upload the unzipped plugin
    folder to your WordPress installation’s wp-content/plugins/ directory.
 3. Activate the plugin from the Plugins menu within the WordPress admin.

#### Where to go after installation

Once WooSidebars has been installed and activated, please visit the “Appearance -
> Widget Areas” screen to begin adding custom widget areas.

#### Upgrading

Automatic updates should work a charm; as always though, ensure you backup your 
site just in case.

## 常见问题

### Where can I find WooSidebars documentation and user guides?

For further documentation on using WooSidebars, please view the [WooSidebars Documentation](https://woocommerce.com/documentation/plugins/woosidebars/).

### Will WooSidebars work with my theme?

Yes; WooSidebars will work with any theme that supports dynamic widget areas.

### How can I contribute to WooSidebars development?

Looking to contribute code to this plugin? [Fork the repository over at GitHub](https://github.com/woocommerce/woosidebars/).
(
submit pull requests to the “develop” branch)

## 评价

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

### 󠀁[nice plugin](https://wordpress.org/support/topic/perfect-solution-for-placing-widgets/)󠁿

 [samicai](https://profiles.wordpress.org/samicai/) 2025 年 2 月 15 日

WooSidebars is the perfect solution for placing widgets on specific pages. It’s 
easy to use, integrates well with WordPress, and does exactly what I needed. Highly
recommended! WooSidebars is doing its job but not updting for a long time!

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

### 󠀁[Not working with PHP 8](https://wordpress.org/support/topic/not-working-with-php-8-2/)󠁿

 [dalibor](https://profiles.wordpress.org/daliborpuljiz/) 2021 年 11 月 2 日 1 回复

Hasn’t been updated in a year.

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

### 󠀁[Han dejado de actualizar y ha roto mi web](https://wordpress.org/support/topic/han-dejado-de-actualizar-y-ha-roto-mi-web/)󠁿

 [emiliprades](https://profiles.wordpress.org/emiliprades/) 2021 年 10 月 2 日

Hace casi dos años que no lo actualizan y con la última versión de Wordpress 5.8
ha roto mi web. Los artículos han empezado a perder el formato, tamaño de texto,
colores, bordes, celdas, etc… y me he vuelto loco durante dos semanas hasta encontrar
el problema. Además, si accedo al menú de widgets de worpress empiezan a saltar 
lineas de error, una por cada widget que tengo en cada barra lateral con este plugin.
Y antes de que me de tiempo ha hacer nada, página en blanco con error 404 y la web
inservible durante un buen rato. Solución a todos los problemas, desactivar todas
las opciones de este plugin, desactivar el plugin y borrarlo y limpiar la base de
datos del CPanel. Conclusión: Instalar plugins gratuitos es un error, tarde o temprano
los abandonan.

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

### 󠀁[PHP 8.0 Error](https://wordpress.org/support/topic/php-8-0-error-4/)󠁿

 [itguysconsulting](https://profiles.wordpress.org/itguysconsulting/) 2021 年 9 
月 19 日 1 回复

There is a problem with line 170 in class-woo-sidebars.php which can be fixed by
changing the %a to a %s. From this: 'search_items' => sprintf( __( 'Search %a', '
woosidebars' ), $plural ), To this: 'search_items' => sprintf( __( 'Search %s', '
woosidebars' ), $plural ),

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

### 󠀁[Helps a lot with Oxygen Builder](https://wordpress.org/support/topic/helps-a-lot-with-oxygen-builder/)󠁿

 [igvsupport](https://profiles.wordpress.org/igvsupport/) 2021 年 8 月 18 日

If you have trouble with widgets showing or being compatible in Oxygen Builder, 
this plugin can do wonders. Especially true regarding WooCommerce plugins and how
they utilize Widgets a lot. Needs to be regularly updated though.

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

### 󠀁[Does not support PHP 8.0](https://wordpress.org/support/topic/does-not-support-php-8-0/)󠁿

 [shadyshane](https://profiles.wordpress.org/shadyshane/) 2021 年 3 月 16 日

The plugin is not being updated anymore. Latest PHP release 8.0 throws a FATAL ERROR.

 [ 阅读所有48条评价 ](https://wordpress.org/support/plugin/woosidebars/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ WooThemes ](https://profiles.wordpress.org/woothemes/)
 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Matt Cohen ](https://profiles.wordpress.org/mattyza/)

「WooSidebars」插件已被翻译至 15 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/woosidebars/contributors)
为本插件所做的贡献。

[帮助将「WooSidebars」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/woosidebars)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.4.5

 * 2018-06-18
 * Fixes a fatal error, by removing the no longer relevant contextual help.

#### 1.4.4

 * 2018-06-08
 * Bug fix and maintenance release. Enables “pages and their children” as a widget
   area condition.

#### 1.4.3

 * 2015-09-22
 * Ensures condition headings are present before attempting to output in the conditions
   meta box.

#### 1.4.2

 * 2015-04-22
 * Security Fix for remove_query_arg vulnerability

#### 1.4.1

 * 2015-02-17
 * Fixes an error notice on the homepage, caused by the tag check logic.

#### 1.4.0

 * 2015-02-17
 * WordPress 3.8 compatibility.
 * Adds “posts tagged with” condition.

#### 1.3.1

 * 2013-08-13
 * Bug fix to ensure multiple conditions save correctly.

#### 1.3.0

 * 2013-08-12
 * Introduces woosidebars_upper_limit filter, used on all database queries, to control
   scaling.
 * Fixes several PHP notices for “undefined index”.
 * Fixes “single” condition, where a small section of logic was missing for determining
   if the condition applied to the current screen being loaded.
 * Optimises admin-side JavaScript and CSS.

#### 1.2.2

 * 2013-03-08
 * Changes capability for displaying the menu to “edit_theme_options” in line with
   the “Widgets” menu capability.

#### 1.2.1

 * 2013-01-09
 * Updated admin JavaScript for WordPress 3.5+ compatibility. Moved “Advanced” tab
   outside of the tabs list.
 * Fixed bug with the “Template Hierarchy -> Pages” condition that wasn’t applying.
 * When WordPress SEO is active, dequeue unused stylesheets on the “Widget Areas”“
   add” and “edit” screens.

#### 1.2.0

 * Renamed files according to standards naming convention.
 * Added scope to methods and properties where missing.

#### 1.1.2

 * Routine hardening and maintenance update. Fixed notice message in WooCommerce
   integration.

#### 1.1.1

 * Fix notice displayed on WooCommerce product pages from the WooSidebars integration.

#### 1.1.0

 * Initial WooCommerce integration.

#### 1.0.0

 * First release. Woo!

## 额外信息

 *  版本 **1.4.6**
 *  最后更新：**2 年前**
 *  活跃安装数量 **100,000+**
 *  WordPress 版本 ** 4.1 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  语言
 * [Danish](https://da.wordpress.org/plugins/woosidebars/) 、 [Dutch](https://nl.wordpress.org/plugins/woosidebars/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/woosidebars/) 、 [English (UK)](https://en-gb.wordpress.org/plugins/woosidebars/)、
   [English (US)](https://wordpress.org/plugins/woosidebars/) 、 [French (France)](https://fr.wordpress.org/plugins/woosidebars/)、
   [Galician](https://gl.wordpress.org/plugins/woosidebars/) 、 [German](https://de.wordpress.org/plugins/woosidebars/)、
   [Japanese](https://ja.wordpress.org/plugins/woosidebars/) 、 [Russian](https://ru.wordpress.org/plugins/woosidebars/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/woosidebars/) 、 [Spanish (Colombia)](https://es-co.wordpress.org/plugins/woosidebars/)、
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/woosidebars/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/woosidebars/)、
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/woosidebars/) 和 [Ukrainian](https://uk.wordpress.org/plugins/woosidebars/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/woosidebars)
 * 标签
 * [sidebars](https://cn.wordpress.org/plugins/tags/sidebars/)[widget areas](https://cn.wordpress.org/plugins/tags/widget-areas/)
   [widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/woosidebars/advanced/)

## 评级

 3.9 星（最高 5 星）。

 *  [  31 条 5 星评价     ](https://wordpress.org/support/plugin/woosidebars/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/woosidebars/reviews/?filter=4)
 *  [  2 条 3 星评价     ](https://wordpress.org/support/plugin/woosidebars/reviews/?filter=3)
 *  [  3 条 2 星评价     ](https://wordpress.org/support/plugin/woosidebars/reviews/?filter=2)
 *  [  10 条 1 星评价     ](https://wordpress.org/support/plugin/woosidebars/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/woosidebars/reviews/)

## 贡献者

 *   [ WooThemes ](https://profiles.wordpress.org/woothemes/)
 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Matt Cohen ](https://profiles.wordpress.org/mattyza/)

## 支持

最近两个月解决的问题：

     总计 2，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/woosidebars/)