Primary

Usage

Appearance - WidgetsWidgets Control features visibility management for every widget and sidebar. This means that you can control if a particular widget (or all widgets in a sidebar) will appear on a page, based on the type of page that the visitor views and other conditions.

How to use Widgets Control

The plugin provides individual settings for each widget and sidebar. To adjust the visibility settings for any widget, follow these simple steps outlined below. Similarly, these options are also available for your theme’s sidebars.

  1. On your WordPress Dashboard, go to Appearance > Widgets.
  2. Click the widget for which you would like to adjust the visibility.Widget in a Sidebar
  3. Below the widget options you will find the Visibility settings. Select one of the three available.Visibility
  4. Below the Visibility settings you will find a text box for Conditions. Input one or more conditions or tokens that identify certain circumstances, pages or sets of pages on your site for which the widget should (or should not) be shown.

    Screen Shot 2015-10-19 at 15.12.09

Available conditions and tokens and how to use them

Here is a brief overview of the available conditions and tokens. We will discuss each in detail in the following sections.

  • To include or exclude pages, use page ids, titles or slugs.
  • Based on the kind of page that is viewed: [home] [front] [single] [page] [category] [category:xyz] [has_term:term:taxonomy] [tag] [tag:xyz] [tax] [tax:taxonomy] [tax:taxonomy:term] [author] [author:xyz] [archive] [search] [404]
  • Based on the screen size of a device, targeting typical mobile, tablet or desktop devices: [small] [medium] [large]
  • With WPML: [language:xyz]
  • Widgets Control Pro features additional conditions, see this documentation page for details.

To use them, input the appropriate ones each on a separate line in the Conditions text box. This will restrict the selected Visibility option to the desired circumstances or pages. Similar conditions and tokens are used with the Shortcodes that Widgets Control provides.

The following pages discuss the above in more detail:

The same Visibility options are available when you go to the WordPress Widget Customizer to edit your widgets.

Customizing WIdgets Save & Publish