How to Hide Sidebar Widgets in Specific Pages of WordPress

Share this

wordpress tips

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

wordpress sidebar

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 the posts of a particular author or author pages
  • Hide them in category/tag pages or custom post types

2. Widget Logic

wordpress sidebar

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

3. Widget Options

wordpress sidebar

Widget Options is a highly customizable plugin to manage your sidebar widgets. It is easy to use and comes with powerful options to give professional look to your blog’s sidebar.

Main Features

  • Show or hide widgets on specific posts, pages, custom post types, categories, and tags
  • Display limited widgets on mobile devices and hide others based on the device types
  • Set center, left, right and justified alignment for the widgets

4. Restrict Widgets

wordpress sidebar

Restrict Widgets is another useful plugin. It lets you control the pages that a widget should 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

5. Jetpack Widget Visibility

wordpress sidebar

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.

Are you searching for more WordPress tips? These posts could be useful:


Share this