Is there a way to detect whether a specific page contains a widget or sidebar.
I am aware of is_active_sidebar()
& is_active_widget()
which return true or sidebar containing the widget, but this is performed globally.
I need to detect and then perform a function based on the outcome i.e. include javascript in <head>
is_active_sidebar()
?