Show only sidebar if widgets have content on the current page
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? No, it couldn’t. You could check if any widgets have saved data on them, but whether a widget has saved data is not a good indication of whether or not it … Read more