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
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.
- 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
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
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.
- 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
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.
- 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
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:
- How to Hide a Blog Post in WordPress- Home, Archives, and Others
- How to Hide or Remove Date From Google Search Results for Your Blog Posts
- How to Show or Hide Menu Items on Certain Conditions in WordPress