WordPress: Limit the visibility of widgets to certain pages

With the popular Widget Visibility module from Jetpack you can define exactly on which pages of your WordPress website certain widgets should be shown or hidden. With the independent widget Visibility without Jetpack Plugin, the module can also be used without Jetpack.

After having dealt with the registration and display of new widget areas with plugins or child themes in the last two posts, I would like to stick to the topic of widgets this week as well.

My WordPress themes rely quite often on the use of widgets. A regular request from users of my themes is therefore the possibility to limit the visibility of widgets to certain pages.

While several plugins are available for this, the best solution for me is still the implementation in the Widget Visibility module of the Jetpack plugin. Jetpack is a huge plugin suite from Automattic with numerous features and modules - a real heavyweight.

For this reason and because of data protection concerns, the plugin is often not used with pleasure. But the widget visibility module can also be used without Jetpack, because it was forked by resourceful developers and published as an independent plugin.

Widget visibility without jetpack

Several offshoots are available as separate plugins for the Widget Visibility Feature, but the more popular JP Widget Visibility Plugin is no longer maintained. I therefore recommend downloading Widget Visibility without Jetpack, which works without any problems in my tests with WordPress 4.7.

This plugin controls what pages your widgets appear on.

By: Joan Boluda

( 9 )
Last updated: 4 years ago
8,000+ active installations
Compatible up to: 4.4.24

Limit widget visibility to certain pages

The plugin adds a new button "Visibility" to each widget, with which the settings for the visibility can be opened when configuring the widgets:

Either conditions for displaying the widget (Show if) or for hiding the widget (Hide if) can be defined for certain pages.

Several rules can easily be added and combined:

The different types of conditions are also more than sufficient.

In this way, widgets can be restricted for certain pages, categories, authors, keywords or custom post types. It is also possible to show or hide widgets only for logged-in / logged-out users or with certain user roles (e.g. administrator).

Simple and flexible to perfection

As mentioned before, I'm a big fan of the Visibility Tool widget. For me it is a prime example of a successful software interface, at least from the point of view of my theme developer glasses.

The settings are elegantly hidden by default, ie only a small button is added to the widget itself. This makes the settings clear and not at all disturbing. The definition of conditions for the display of a widget is intuitive and simple, but can still be designed very flexibly.