How to hide sidebar if page has no widgets for it


I’m trying to figure out how to hide a sidebar if it doesn’t have any widgets displaying. Why have an empty sidebar on a page taking up space when it’s not using any widgets? In my case, the plugin has a way to control if a widget will display in a sidebar on some pages and not on others. That takes care of the widgets but the sidebar still is set to show up on all pages or none. In my case, I can’t turn on and pff the sidebar per page so I have to have it show on all pages 🙁 Some pages don’t have any widgets showing, but the sidebar is there 🙁

Rob2 8 months 0 Answers 90 views 0

Leave an answer