Timeline for Show only sidebar if widgets have content on the current page
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 9, 2018 at 9:51 | vote | accept | Skovsgaard | ||
Aug 9, 2018 at 9:04 | answer | added | Jacob Peattie | timeline score: 2 | |
Aug 9, 2018 at 8:31 | comment | added | Skovsgaard |
"Product categories" was just to give a realistic example of where the sidebar could actually be completely empty. I wan't this to work with any widget. Could the is_active_widget function dynamically check each widget added to the sidebar if they have content and return true if any of them have? is_active_widget function
|
|
Aug 9, 2018 at 8:30 | review | Close votes | |||
Aug 24, 2018 at 3:10 | |||||
Aug 9, 2018 at 8:16 | comment | added | user145078 | Yes you have to tweak the wordpress widget instead of sidebar | |
Aug 9, 2018 at 8:14 | comment | added | Max Yudin | It depends on the approach each widget is developed. But "Product categories" is not a WordPress widget, so the question is off-topic. | |
Aug 9, 2018 at 8:09 | history | asked | Skovsgaard | CC BY-SA 4.0 |