Do you want to Disable Sidebar Widget on specific post or pages with just simple code or plugin? Then you came at the right place.
In WordPree CMS system Widgets are essentials and we usually use it very much for the things like display search bar, recent post, Adsense ads, advertisement, facebook page, twitter etc. But for some reason, we don’t want to display the widgets on some post or pages and unfortunately, WordPreess doesn’t have any functions to exclude widgets on specific post or pages.
That’s why we build this guide to disable Sidebar widget on the specific page or post with either by using the plugin or simple code.
2 Methods to Disable Sidebar Widget on Specific Post or Page
- Disable Sidebar widget with Plugin.
- Disable Sidebar Widget with Code.
Disable Sidebar widget with Plugin (Method 1)
This is the best option for those who have no knowledge about the coding PHP. Let’s start.
Display Widget (Plugin)
Display Widget is a WordPress plugin which provides the best functionality for hiding and showing widgets on specific post or page.
Steps to use Display Widget Plugin
- Download Display Widget plugin and install it.
- Go to Appearance -> Widgets.
- Expand your Sidebar.
- Click on any widget that you want to disable on a specific page.
- Select Show Widgets to Everyone
- Check box the pages on you want not to show that widget.
- Click on save button.
- Done!

Disable Sidebar Widget with Code (Method 2)
This is the cool and most reliable option to do if you have some knowledge of coding. Below we’ve posted the simple code snippet that will help you to disable the sidebar widget on specific post or pages that id you will put.
Steps to use Disable Widget Code
- Open your website theme’s functions.php file into any text or web editor.
- Copy the below code.
- Paste the code into functions.php.
- Save.
- Done!
Disable Widget Code
add_filter( 'sidebars_widgets', 'extracatchy_code_disable_widgets' ); function extracatchy_code_disable_widgets( $sidebars_widgets ) { if (is_single(array(3,40,62,78))) // replace this with post/page ID $sidebars_widgets = array( false ); return $sidebars_widgets; }
So that was the sidebar widget tips. If you guys have any question or it is worked for you, let us know in comment section.