Title: Block Visibility Function
Last modified: October 23, 2023

---

# Block Visibility Function

 *  Resolved [mjwareha](https://wordpress.org/support/users/mjwareha/)
 * (@mjwareha)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/)
 * Hi – I’m using (and liking) this theme, but having trouble with Block Visibility
   when applied to BS Tabs.
 * I have created a set of tabs, but I only want specific tabs to appear based on
   a field in GDDiretory. I know the rule works as I use it to display (or not) 
   other data on the page, however, it doesn’t appear to work for the BS Tabs.
 * Is Block Visibility supposed to work for tabs? It is an available option in the
   tab setting.

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

 *  Thread Starter [mjwareha](https://wordpress.org/support/users/mjwareha/)
 * (@mjwareha)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17143424)
 * Further testing and I have worked out that the rule is being respected, but not
   by removing the tab itself, only the content contained in the tab.
 * Is this the expected behaviour? I note that when using visibility on menu items
   it controls the display of the menu item itself, which is really useful.
 * Any help is appriciated.
 *  [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17144785)
 * Hi [@mjwareha](https://wordpress.org/support/users/mjwareha/), I asked to the
   developers to follow up. We will get back to you ASAP.
 * Thanks for your patience
 *  [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17146678)
 * Hi @mhwareha,
 * Tab action link issue with Visibility Conditions has been fixed. It will be available
   in next update of BlockStrap Page Builder Blocks plugin. Meantime you can try
   this patch [https://github.com/AyeCode/blockstrap-page-builder-blocks/pull/65/files](https://github.com/AyeCode/blockstrap-page-builder-blocks/pull/65/files)
 * Thanks,
 * Stiofan
 *  Thread Starter [mjwareha](https://wordpress.org/support/users/mjwareha/)
 * (@mjwareha)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17148831)
 * Thanks – I’ll try it out and let you know how I get on.
 *  Thread Starter [mjwareha](https://wordpress.org/support/users/mjwareha/)
 * (@mjwareha)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17149147)
 * Hi [@stiofansisland](https://wordpress.org/support/users/stiofansisland/), I’ve
   just tried the patch, and it does remove the contents of the tab based on visibility
   conditions, however, I was hoping to remove the tab altogether. This would enable
   dynamic tabs, removing irrelevant ones based on visibility settings.
 * Hope that makes sense.
 *  [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17155444)
 * It should remove the tab also, you may have to try editing and re-saving the 
   tabs to make it work, please let me know.
 * Thanks,
 * Stiofan
 *  Thread Starter [mjwareha](https://wordpress.org/support/users/mjwareha/)
 * (@mjwareha)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17177638)
 * Hi – I’ve been testing this with the patch, and (assuming I have patched my installation
   correctly – which is a big assumption – I downloaded the changed GitHub files
   and applied them to my installation), I can’t get the visibility to remove the
   tab itself. At least not consistently. It has worked on occasions, but I can’t
   determine why it works when it does and doesn’t work when it doesn’t! Sorry I
   can’t be more help.
 *  [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17178112)
 * Maybe try removing the tabs and re-adding them again? If you have already tried
   that please open a support ticket on our site and include in the subject “FAO
   Stiofan” and i can assist further: [https://wpgeodirectory.com/support/](https://wpgeodirectory.com/support/)
 * Thanks,
 * Stiofan

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

The topic ‘Block Visibility Function’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/directory/3.0.10/screenshot.png)
 * Directory
 * [Support Threads](https://wordpress.org/support/theme/directory/)
 * [Active Topics](https://wordpress.org/support/theme/directory/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/directory/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/directory/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/block-visibility-function/#post-17178112)
 * Status: resolved