sandywp / plugins / block-visibility

Block Visibility

Conditional Visibility Control for the Block Editor

4.9 out of 5 stars. 4.9 106 reviews

Easily show or hide any WordPress block. Schedule block visibility. Restrict blocks to specific screen sizes, user roles, post types, and more.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v3.7.1 40,000+ installs WP 6.5+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Block Visibility — Conditional Visibility Control for the Block Editor running inside a SandyWP sandbox

What you get inside

8 screens
  • Quickly and easily hide show or hide blocks on your website.

  • Schedule blocks using start and end date/time settings. Day-of-week and time-of-day recursion are also available. The plugin provides complete block scheduling…

  • Show or hide blocks on mobile devices, tablets, desktops, and more.

  • Control who can see each Gutenberg block with user role restrictions. Great for personalization.

  • Create unique marketing campaigns using query string parameters to display personalized messaging.

  • Current integrations include Advanced Custom Fields, Easy Digital Downloads, WooCommerce, and WP Fusion.

  • General plugin settings to enable/disable certain functionality, including user permissions and Full Control Mode.

  • Choose which conditional visibility controls you want to use on your site.

About this plugin

Easily create dynamic content in WordPress that will increase conversions, enhance the user experience, and improve your workflow.

With this no-code solution, control which blocks are visible on your website and who can see them. Schedule content to show or hide at a specific time. Display exclusive promotions to your customers or members. Restrict blocks to specific user roles, screen sizes, query strings, WooCommerce products, EDD downloads, ACF fields, WP Fusion tags, and more.

Block Visibility is built exclusively for the WordPress Editor (Gutenberg) and is designed to work with any WordPress block. This includes blocks natively provided by WordPress, third-party blocks, and even block-based widgets.

Create Conditional Blocks in Seconds!

Work directly in the WordPress Editor with blocks you’re already familiar with. There is no external editor or new interface to learn. In seconds, you can transform static blocks into conditional and personalized content.

It takes just 3 simple steps:

  1. Create your content using any WordPress block.
  2. Select the desired visibility conditions.
  3. Save the page/post and marvel at the results!

Packed With Features

Visibility Controls determine whether a block should be visible to users on the front end of your website. Features include:

  • Hide blocks from all users.
  • Schedule when content should be visible using a start and end date/time.
  • Conditionally display blocks based on screen size (Desktop, Tablet, Mobile, and more)
  • Only show blocks to logged-in users.
  • Only show blocks to logged-out users.
  • Only show blocks to users with specific roles (Administrator, Subscriber, Customer, Member, etc.)
  • Only show blocks to specific users. Great for personalization.
  • Show or hide dynamic blocks based on URL query strings. Great for marketing campaigns!
  • Show or hide blocks based on their location and “attributes” of their location (post type, taxonomy, archive, etc.)
  • Display blocks based on a website visitor’s referral source (domain/URL).
  • Support for all post and user metadata (custom fields).
  • Display blocks based on HTML cookies.
  • WooCommerce: Show or hide blocks based on products, cart contents, customer purchase history, and more.
  • Advanced Custom Fields (ACF): Control the visibility of block content based on ACF fields.
  • Easy Digital Downloads: Show or hide blocks based on downloads, cart contents, customer purchase history, and more.
  • WP Fusion: Combine Block Visibility with the power of WP Fusion to conditionally show or hide content based on data from your favorite CRM or marketing automation platform.

PLUS: Powerful Settings allow you to customize Block Visibility to your needs or those of your clients.

  • Visibility Presets allow you to control multiple blocks at once.
  • Globally disable any visibility control.
  • Restrict visibility controls to specific block types.
  • Set permissions so only certain users have access to visibility conditions.
  • Configure up to 4 different breakpoints to optimize the screen size controls.
  • Disable contextual indicators and other plugin utilities.
  • Customize the contextual indicator color to enhance theme compatibility.
  • Enable Full Control Mode 🚀 (See the FAQs).
  • Remove all plugin settings on uninstall.

Why Do I Need This?

While there are countless applications for conditional blocks, here are a few examples to get you started:

  • Use as a content management tool. Hide new blocks while working on them, but keep the page published.
  • Temporarily hide seasonal content on your website rather than having to delete it.
  • Schedule time-sensitive promotional content or event information to display automatically.
  • Show or hide specific content on desktops, tablets, or mobile devices.
  • Restrict content so it’s only visible to your customers, members, or subscribers.
  • Display messaging to logged-out users, encouraging them to subscribe to your blog.
  • Create unique marketing campaigns using query string parameters to display personalized messaging (See it in action)
  • Conditionally display elements in the Site Editor using advanced visibility logic.
  • Increase visitor engagement and conversions with dynamic content and personalization.

Why Choose Block Visibility?

1. Easy to Use
Block Visibility is the easiest way to create conditional blocks in WordPress. All with no code and just a few clicks!

2. A Balance of Power and Simplicity
Block Visibility is for you whether you’re building a sophisticated time-based promotional campaign for your customers or need to hide a few blocks on mobile. Don’t need certain functionality? Toggle it off in the plugin settings.

3. Helpful Support and Continuous Development
Block Visibility is designed, developed, and supported by Nick Diego with contributions from the broader Block Visibility community. Have an idea for additional block logic? Let us know in the plugin support forum.

For an unbiased review, the plugin was featured on WordPress Tavern.

Plays nice with others

Block Visibility is designed to work with any block and is tested with these top block libraries and plugins.

Compatibility + Direct Integration

Stay Connected

Stay up-to-date on Block Visibility using the links below. The plugin is also being developed transparently on GitHub, so give it a star and follow along! 😉

Questions

Who should use Block Visibility?

Block Visibility is a powerful yet simple plugin that gives marketing agencies, bloggers, eCommerce websites, and small business owners the power to conditionally show or hide blocks on their websites. The need to hide Gutenberg blocks varies. Whether you need to restrict content to specific users like members or launch a promotional campaign at a particular time with block scheduling, the applications are endless.

If you need dynamic content control on your WordPress website, you need Block Visibility.

Do conditional visibility controls really work with any block? (What is Full Control Mode?)

Yes! However, not all block types are enabled by default. Controls are only provided to blocks that can be added directly to a page/post by the block inserter. Therefore, some specialized blocks, such as child blocks, are not included by default. An example is the individual Column block that is part of the larger Columns block.

That said, you can enable Full Control Mode in the plugin settings. This setting removes all restrictions and adds conditional visibility controls to every block. You probably will not need Full Control Mode in most cases, but it is there if you do!

Furthermore, while this plugin is designed to be compatible with all blocks, the WordPress ecosystem is ever-expanding. If you find a conflict with a specific block, please let us know in the plugin support forum, and we will investigate. We are committed to bringing visibility block controls to every Gutenberg block.

Can Block Visibility be used with any WordPress theme?

Yup, this plugin is not theme-specific. You just need to run the latest WordPress version and use a theme that supports the block Editor. This plugin provides zero functionality to the Classic Editor.

Will more conditional visibility controls be added in the future?

Yes, and if you have a specific idea of what you would like to see, please submit a feature request in the plugin support forum on WordPress.org.

Does this plugin work in the Site Editor (Full Site Editing)?

As of version 1.4.0, Block Visibility is supported in the Site Editor, which is available when using a block theme. We are committed to ensuring 100% compatibility with all Full Site Editing features. Please let us know in the plugin support forum if you find bugs or compatibility issues.

Does Block Visibility work with Elementor and other page builders?

No. Block Visibility is designed specifically for the WordPress block Editor and, therefore, does not work on pages that the Elementor editor or another page builder controls. So long as you edit native WordPress “block” content, Block Visibility will work.

Is block visibility controlled using CSS?

Visibility is controlled primarily on the server, so if a block should be hidden based on the set block controls, it will not even be rendered. This functionality ensures the plugin does not load any additional resources on the front end of your site, thereby optimizing performance.

The one exception to this is the Screen Size block controls. Visibility by screen size requires the use of CSS. This CSS is loaded to the front end of your site if, and only if, these controls are enabled. You can opt to disable this CSS and add the necessary styles yourself. Visit the plugin Knowledge Base to learn more.

4.9

106 reviews

  • 5 ★ 102
  • 4 ★ 1
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 3

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.