Sidebar area still shown when all widgets are hidden
-
I’ve been using Widget Options for a couple of years now and it is great.
I have a widget (WooCommerce Cart) that I’ve added to the “Before Main Content” sidebar as the only widget in the sidebar. I’ve configured it to only show on post_type=Product posts using Widget Options; on all other posts/pages/taxonomies, Widget Options correctly hides the Cart widget.
This is great, but the issue I’m having is that – while the widget is correctly hidden – the “Before Main Content” sidebar is not.
My request is that if Widget Options hides all of the/the last widgets in a sidebar, then the sidebar should be hidden as well. This would mimic WordPress’ behavior when there are no widgets in a sidebar.
If I remove the WooCommerce Cart widget from the “Before Main Content” sidebar on the /wp-admin/widgets.php page, the sidebar is not rendered/shown at all.
Thanks! Dan
The page I need help with: [log in to see the link]
- The topic ‘Sidebar area still shown when all widgets are hidden’ is closed to new replies.