Title: Widgets Control
Author: itthinx
Published: <strong>2015 年 3 月 10 日</strong>
Last modified: 2025 年 12 月 20 日

---

搜索插件

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

![](https://ps.w.org/widgets-control/assets/icon-256x256.png?rev=1526585)

# Widgets Control

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

[下载](https://downloads.wordpress.org/plugin/widgets-control.3.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/widgets-control/)

## 描述

_Widgets Control_ is a toolbox that features visibility management for all widgets,
sidebars, sections of content and content blocks.
 It allows to **show widgets and
sidebars based on conditions** – you can choose to show them only on certain pages
or exclude them from being displayed.

**Sections** of content can also be restricted by using this plugin’s `[widgets_control]`
shortcode.

You can also define new WYSIWYG **Content Blocks** that can be used in widgets, 
sidebars and with shortcodes.

For each widget and sidebar, you can decide where it should be displayed:

 * show it on all pages
 * show it on some pages
 * show it on all except some pages

… you can target small, medium or large screens for mobile, tablet and desktop users.

To include or exclude pages, the plugin allows you to indicate page ids, titles 
or slugs and tokens that identify the front page, categories, tags, etc.

In addition to page ids, titles and slugs, these tokens can be used to determine
where a widget should or should not be displayed:

    ```
    [home] [front] [single] [page] [category] ...
    ```

On sites using [WPML](https://wpml.org), widgets can be shown conditionally based
on the language viewed.

The `[widgets_control]` shortcode is used to embed content and show it conditionally
similar to the visibility options used for widgets and sidebars.
 For example, `[
widgets_control conditions="{archive}"]This text is shown only when the content 
is displayed on an archive page.[/widgets_control]`.

_Widgets Control_ also provides **flexible WYSIWYG Content Blocks** and a proper
widget that can be used to place them in sidebars,
 the `[widgets_control_content]`
shortcode to embed freely created blocks anywhere on your pages and API functions
that allow to include these blocks in PHP templates of your theme. For even more
flexible control, use [Widgets Control Pro](https://www.itthinx.com/shop/widgets-control-pro/)
which provides freely definable additional sidebars.

Use display conditions to show or hide content on devices with small, medium or 
large displays, useful to adapt the display to **mobile, tablet and desktop** viewers.

See the [documentation](http://docs.itthinx.com/document/widgets-control/) for more
details.

_Widgets Control_ works with virtually any widget. It is compatible with lots of
plugins, among these it has been tested with:

 * [Groups](https://wordpress.org/plugins/groups/)
 * [Affiliates](https://wordpress.org/plugins/affiliates/)
 * [Decent Comments](https://wordpress.org/plugins/decent-comments/)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [WooCommerce Product Search](https://www.itthinx.com/shop/woocommerce-product-search/)
 * [Search Live](https://wordpress.org/plugins/search-live/)
 * [Documentation](https://wordpress.org/plugins/documentation/)
 * [Events Manager](https://wordpress.org/plugins/events-manager/)
 * [BuddyPress](https://buddypress.org)
 * [bbPress](https://wordpress.org/plugins/bbpress/)
 * [Ninja Forms](https://wordpress.org/plugins/ninja-forms)
 * [Gravity Forms](https://gravityforms.com/)
 * [Jetpack](https://wordpress.org/plugins/jetpack/)
 * [WPML](https://wpml.org)
 * [NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Image Widget](https://wordpress.org/plugins/image-widget/)
 * [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [MailPoet Newsletters](https://wordpress.org/plugins/wysija-newsletters)
 * [Elementor](https://wordpress.org/plugins/elementor/)

### Widgets Control Pro

Our [Widgets Control Pro](https://www.itthinx.com/shop/widgets-control-pro/) provides
additional features:

 * Conditions based on the viewed **post type**. For example, show a widget only
   on posts with `[type:post]` or only on product pages with `[type:product]`
 * Show or hide widgets on full **page hierarchies**, where conditions are based
   on a parent page and all its child pages: `some-page/*`
 * Show or hide widgets based on user **roles**. For example, show a widget to subscribers
   and customers only: `[role:subscriber,customer]`
 * Show or hide widgets based on a user’s **group membership** with [Groups](https://wordpress.org/plugins/groups/).
   For example, show a widget only to registered users with `[group:Registered]`
   or show a widget only to users in a Premium group using `[group:Premium]`
 * Show or hide widgets for archive pages of a specific post type. For example, `[
   archive:product]` can be used to show widgets for the WooCommerce shop page and
   product archives only.
 * Allows to specify exclusions. For example, to show a widget only on pages, but
   exclude it from being shown on one or more specific pages.
 * Provides additional **sidebar features** that allow to define any number of **
   custom sidebars**, flexible placement based on common locations, including above
   and below content, the comment form, menus and other sidebars, the `[widgets_control_sidebar]`
   shortcode to embed them in content on your pages and API functions to use them
   in your theme’s templates.

### 反馈

Feedback is welcome!

If you need help, have problems, want to leave feedback or want to provide constructive
criticism, please do so here at the [Widgets Control](https://www.itthinx.com/plugins/widgets-control/)
plugin page.

Please try to solve problems there before you rate this plugin or say it doesn’t
work. There goes a _lot_ of work into providing you with quality plugins!

Please help with your feedback and we’re also grateful if you help spread the word
about this plugin.

**Thanks!**

#### Twitter

Follow [@itthinx](https://twitter.com/itthinx) on Twitter for updates on this and
other plugins.

## 屏幕截图

 * [[
 * Widget visibility example I.
 * [[
 * Widget visibility example II.
 * [[
 * Widget visibility example III.
 * [[
 * Sidebar visibility example.
 * [[
 * Shortcode usage examples to restrict sections of content.
 * [[
 * [[
 * [[
 * [[
 * [[
 * [[
 * [[
 * [[
 * [[

## 安装

#### 边栏

Log in as an administrator and go to **Plugins > Add New**.

Type _Widgets Control_ in the search field and click _Search Plugins_, locate the
_Widgets Control__ plugin by __itthinx_ and install it by clicking _Install Now_.

Now _activate_ the plugin to have the widget placement features available.

#### FTP

You can install the plugin via FTP, see [Manual Plugin Installation](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

## 常见问题

### Where is the documentation for this plugin?

You can find the documentation on the [Widgets Control](http://docs.itthinx.com/document/widgets-control/)
documentation pages.

## 评价

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

### 󠀁[Widgets Control OK](https://wordpress.org/support/topic/widgets-control-ok/)󠁿

 [edwin12345678](https://profiles.wordpress.org/edwin12345678/) 2022 年 8 月 7 日

Widgets Control OK

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

### 󠀁[It is amazing .](https://wordpress.org/support/topic/it-is-amazing-12/)󠁿

 [blackf0228](https://profiles.wordpress.org/blackf0228/) 2022 年 7 月 14 日 1 回复

Very useful!!

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

### 󠀁[THX for this great plugin](https://wordpress.org/support/topic/thx-for-this-great-plugin/)󠁿

 [hikingtom](https://profiles.wordpress.org/hikingtom/) 2019 年 12 月 23 日

easy and direct access to widgets

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

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-1881/)󠁿

 [jakirhossainb](https://profiles.wordpress.org/jakirhossainb/) 2019 年 4 月 7 日

I am really grateful to WordPress. Its very useful for me. Nice site.

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

### 󠀁[Love this plugin](https://wordpress.org/support/topic/love-this-plugin-713/)󠁿

 [Anticosti](https://profiles.wordpress.org/anticosti/) 2018 年 11 月 10 日

A must use plugin. Good job!

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

### 󠀁[Don’t Know How Good It Is](https://wordpress.org/support/topic/dont-know-how-good-it-is/)󠁿

 [Bruce](https://profiles.wordpress.org/sliderbugger/) 2018 年 9 月 22 日

Just doing review so the damn thang will go the Hell away off my admin page.

 [ 阅读所有14条评价 ](https://wordpress.org/support/plugin/widgets-control/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ itthinx ](https://profiles.wordpress.org/itthinx/)
 *   [ Kento ](https://profiles.wordpress.org/proaktion/)

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

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

### 对开发感兴趣吗?

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

## 更新日志

See the full [changelog](https://plugins.svn.wordpress.org/widgets-control/trunk/changelog.txt)
for details.

## 额外信息

 *  版本 **3.0.0**
 *  最后更新：**6 月前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/widgets-control/) 和 [Italian](https://it.wordpress.org/plugins/widgets-control/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/widgets-control)
 * 标签
 * [context](https://cn.wordpress.org/plugins/tags/context/)[sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)
   [theme](https://cn.wordpress.org/plugins/tags/theme/)[visibility](https://cn.wordpress.org/plugins/tags/visibility/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/widgets-control/advanced/)

## 评级

 4.7 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ itthinx ](https://profiles.wordpress.org/itthinx/)
 *   [ Kento ](https://profiles.wordpress.org/proaktion/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.itthinx.com/shop/widgets-control-pro/)