Problems when using is_active_sidebar() function
-
Hello,
for my site (https://www.cristinacanocchia.com/) I’m using a theme that calls the is_active_sidebar() function to decide the right size for the various elements.
It seems that the function (probably depending on when it is called when composing the page) always returns false if I choose the “Show on checked pages” option for the widgets contained in the sidebar, and always returns true if I choose the “Hide on checked pages” option.
This happens regardless of whether the page in question is checked or not.
Is there a way to force your plugin to run (and, in my case, show or hide the sidebar content) *before* is_active_sidebar() is called so that the function will return the correct value?Thx,
M.
The topic ‘Problems when using is_active_sidebar() function’ is closed to new replies.