How to hide or show the WordPress Widget in specific pages and posts?

Do you want to hide Widgets from a specific page or post on your WordPress site?

In this article, I will tell you how you can easily hide WordPress Widgets from any of your pages or posts.

How to hide WordPress Widgets Plugin from Specific Pages?

To hide widgets from any page, first, you need to install and activate the Widget Options plugin in your WordPress site.

After activating the plugin, click Appearance >> Widgets. Then drag-drop Widget into the sidebar or footer. This will add some new options to your Widget.

To hide the widget, tick the box next to the page from which you want to hide the widget. Follow the screenshot below.

WordPress widget plugin

The plugin will hide the widget from your selected pages.

If you want to hide the widget from your Home / Front, Blog, Archives, 404, Search, then follow the screenshot given below.

WordPress widget plugin

Click on the “Save” button to store your settings.

How to Hide Widgets from Specific WordPress Post?

To hide Widgets from a post, first, you have to get Post IDs.

To get the Post ID, move the Mouse pointer to “Edit Post” in your WordPress dashboard. This will show your Post ID. You can see in the screenshot below.

WordPress widget plugin

Now we have Post ID, let’s hide Widget from that specific post. Just click on the Gear icon >> Logic and write the Post ID like this – Is_single (array (‘4076 ‘))

Find all conditional tags in WordPress.

Click the Save button to store your settings. The plugin will hide Widgets from your specific post.

The plugin also allows you to hide Widget for Desktop, Tablet, and Mobile devices.

Leave a Comment