How to Hide WordPress Sidebar Widgets in Some Pages

Share this

wordpress sidebar

We use several types of sidebar widgets on WordPress site. It may be a social media subscription box or a popular posts widget or anything else. Some times we want to display them in selected pages, posts only. But how to hide them from other pages ?

There are a number of plugins designed for the purpose, which lets you hide or show widgets on certain parts of a site. They are easy to use and offers great functionality on the front-end.

1) Dynamic Widgets

Dynamic Widgets gives you full control on the widget visibility. You can hide them based on user roles or in single posts, pages, some days of a week, some dates of a month, front page, certain browsers, archives etc.

Main Features

  • Hide a widget for admins, authors or any other user roles
  • Hide single/multiple widgets on a particular day or date
  • Hide them on front page, single posts, pages, archives, error pages, contact forms
  • Hide them in some devices (desktop, mobile), certain browsers or ip addresses
  • Hide them in posts of a author or author pages
  • Hide them in category, tag pages or custom post types
  • Support to multiple languages- Portuguese, Chinese, French, German, Spanish and more

2) Widget Logic

Widget logic is one of the most popular plugin in this category. It lets you control each widgets with an extra field where you can use conditional tags of WordPress or any PHP code.

3) Display Widgets

Show different widgets for different pages, custom taxonomies, posts etc. After the installation, you will get an extra option below to Widgets. By default it will show ‘Hide on checked pages’ with available page names. Change the condition to ‘Show on checked pages’ or make necessary selections from the below boxes.

4) Restrict Widgets

Restrict Widgets is another useful plugin. It lets you control the pages that a widget shoul appear and whichever widgets are available for the selected users to manage etc.

Main Features

  • Assign separate users to manage the widgets
  • Show or hide widgets on single posts, pages, categories, archives etc
  • Show different widgets for logged in and logged out users
  • Support to multiple languages-Chinese, Czech and Polish

5) Jetpack Widget Visibility

In addition to all above mentioned plugins, Jetpack too provides the similar functions. The feature comes along with Jetpack default plugin.

  • Activate the ‘Widget Visibility’ option from the features panel.
  • Go to Widgets menu. Open any widget you are using.
  • Near to Save button, you can find Visibility option there. Click on that.
  • The menu will expand, select ‘Hide’ or ‘Show’ from the drop down box and make necessary changes in below showing boxes.
  • You can add any number of conditions there, by clicking on ‘Add’ option.

Also Read  Best WordPress Contact Form Plugins of 2016


Share this