Primary

Usage

Appearance - WidgetWidgets Control Pro 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 Pro

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.Conditions

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.
  • For page hierarchies use a page id, title or slug followed by a slash and asterisk: some-page/*
  • Use the exclamation mark ! as a prefix for exclusions, for example: ![front]
  • Based on the kind of page that is viewed: [home] [front] [single] [type:xyz] [page] [category] [category:xyz] [has_term:term:taxonomy] [tag] [tag:xyz] [tax] [tax:taxonomy] [tax:taxonomy:term] [author] [author:xyz] [archive] [archive:xyz] [search] [404]
  • Based on the screen size of a device, targeting typical mobile, tablet or desktop devices: [small] [medium] [large]
  • Based on the user’s role: [role:xyz]
  • With Groups: [group:xyz]
  • With WPML: [language:xyz]

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 Pro 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