Title: Problems when using is_active_sidebar() function
Last modified: January 21, 2022

---

# Problems when using is_active_sidebar() function

 *  Resolved [mme000](https://wordpress.org/support/users/mme000/)
 * (@mme000)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/)
 * Hello,
    for my site ([https://www.cristinacanocchia.com/](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.
    -  This topic was modified 4 years, 3 months ago by [mme000](https://wordpress.org/support/users/mme000/).
    -  This topic was modified 4 years, 3 months ago by [mme000](https://wordpress.org/support/users/mme000/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mej de Castro](https://wordpress.org/support/users/mej/)
 * (@mej)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/#post-15276652)
 * Hi [@mme000](https://wordpress.org/support/users/mme000/)
 * Thank you letting us know about this issue. We have known issue about the behavior
   of visibility feature of Widget Options. Our developer is currently working on
   a fix.
 * Thank you for your patience on this.
 * Kind Regards,
    Mej
 *  Plugin Author [Mej de Castro](https://wordpress.org/support/users/mej/)
 * (@mej)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/#post-15353638)
 * Hi [@mme000](https://wordpress.org/support/users/mme000/)
 * I wanted to confirm if you have updated the Widget Options plugin installed in
   your website to its latest version? Our latest updated include fixes for Visibility
   issue.
 * Thank you,
    Mej
 *  Thread Starter [mme000](https://wordpress.org/support/users/mme000/)
 * (@mme000)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/#post-15354147)
 * Hi Mej,
    yes, I’m using version 3.7.11 but the problem still persists. How can
   I help you to investigate on it?
 * Thanks,
 * M.
 *  Plugin Author [Mej de Castro](https://wordpress.org/support/users/mej/)
 * (@mej)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/#post-15361725)
 * Hi [@mme000](https://wordpress.org/support/users/mme000/) ,
 * You may shoot over the screenshots and details to [support@widget-options.com](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/support@widget-options.com?output_format=md)
   and our team can review that with you!
 * Thank you,
    Mej

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problems when using is_active_sidebar() function’ is closed to new replies.

 * ![](https://ps.w.org/widget-options/assets/icon-256x256.gif?rev=2513739)
 * [Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets](https://wordpress.org/plugins/widget-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-options/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-options/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mej de Castro](https://wordpress.org/support/users/mej/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/problems-when-using-is_active_sidebar-function/#post-15361725)
 * Status: resolved