• Resolved lozeone

    (@lozeone)


    when using this to control sidebar blocks, if all the blocks in the sidebar are hidden for a page, the sidebar.php template is still output on the page,

    it appears that is_active_sidebar( ‘sidebar-1’ ) is still returning true, when it should return false.

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @lozeone,

    Thank you for logging this issue. When Block Visibility hides a block-based widget, it still “exists” in the widget area. It is just not rendered on the front end.

    Block Visibility provides minimal support for block-based widgets and does not interact with widget-related functionality like the is_active_sidebar() function. Therefore, I cannot provide a solution in the plugin itself. You will need to use some other mechanism to hide the sidebar entirely.

    Best,
    Nick

Viewing 1 replies (of 1 total)
  • The topic ‘get_sidebar() outputs template markup even if all blocks are hidden’ is closed to new replies.