Tagged: disable, display everywhere, function
Hi!
I’ve created a custom widget area and selected the custom widget area as a page’s Sidebar Setting. The problem is that this does not remove the default Display Everywhere widgets from the page’s sidebar. As I’d like to keep the Display Everywhere widgets for other pages, removing them via the Widgets admin area isn’t an option.
I tried to disable the Display Everywhere widgets via a function (found in the WP Codex) using unregister_sidebar('Display Everywhere')
and unregister_widget('Display Everywhere')
, but the widgets stick.
Does anyone know how to get a function to remove the default widgets from a specific page?
Thank you,
Ralph
Hi Ralph12!
The “Display Everywhere” widget area is there to make it easier for users who want the same sidebar for everything. In your case you will want to remove all of your widgets set to that widget area and create custom sidebars to use for your pages.
We can give you some CSS to hide the widgets on that specific page but it would be best to create your own sidebars.
Regards,
Elliott