How to Configure the General Settings


The General Settings tab is accessible via the Block Visibility settings page in the WordPress admin and allows you to configure some general functionality for the plugin. As development continues on Block Visibility, expect an expanded list of options.

The General Settings tab of the Block Visibility settings page (v2.4.0)
The General Settings tab of the Block Visibility settings page (v2.4.0)

Block Editor

The Block Editor section contains a variety of settings that impact how the plugin interacts with the WordPress editor. As the development of Block Visibility continues, more features will be added the increase the usability of the plugin and make it easier for users to configure the visibility settings of each block. That said, if there is a certain feature you do not like, you can simply turn it off in the Block Editor settings.

Contextual Indicators

Contextual indicators make it easier to see which blocks have enabled visibility controls in the Editor. That said, you may want to turn them off, or change the color of the indicators. These settings allow you to do that.

Contextual Block Opacity

While contextual indicators are great, many users asked for even more visual queues that a block has visibility controls enabled. Therefore, we have also included the option to add opacity to each block with active visibility controls.

Note that there are some limitations with this setting. To preserve native WordPress Editor functionality, the opacity is added to all inner content of a block. Since some blocks do not have wrapper “containers”, such as the Paragraph and Heading blocks, the opacity will not be applied.

Toolbar Controls

This setting allows you to enable/disable the toolbar controls added by Block Visibility. Currently, only the Hide Block control is supported. See the screenshot below for reference:

Toolbar controls in Block Visibility (v2.4.0)
Toolbar controls in Block Visibility (v2.4.0)

Utilities

Control set utilities to allow you to copy and import visibility settings. This functionality is useful when advanced setting configurations need to be used across multiple blocks. See the screenshot below for reference:

Control set utilities in Block Visibility
Control set utilities in Block Visibility

User Permissions

As of version 1.3.0, Block Visibility has user permissions that allow website administrators to decide who can use visibility controls.

By default, any user that is able to edit blocks in the Block Editor will also be allowed to control block visibility. To restrict this functionality, simply enable restrictions and choose the user roles that you would like to have access. Note that administrators will always have access.

Contextual indicators will display for users that have been restricted, so long as contextual indicators are enabled. This allows restricted users to still see which blocks are controlled by visibility settings, but they are not able to adjust those settings.

Full Control Mode

By default, not all blocks are provided with visibility controls. These include child blocks and blocks that may exist in WordPress but cannot actually be added directly to the editor.

If you are looking for the visibility panel on a selected block and do not see it, or cannot find a certain block in the Block Manager, then you likely need to enable Full Control Mode. For most applications of the Block Visibility plugin, you will not need Full Control Mode, but it’s there in case you do.

There are a few things about Full Control Mode (FCM) that you should be aware of:

  1. If a block receives visibility settings due to FCM being enabled, these settings will remain if FCM is ever disabled. For example, the Column block is a child block of the larger Columns block. Visibility controls are not provided to Column blocks by default, only Columns blocks. When you enable Full Control Mode, you will be able to control visibility on both block types. Now let’s assume you had configured visibility on a number of Column blocks. If you were to ever disable FCM, you would no longer be able to control visibility on the Column block. However, any previously set visibility settings would still be applied on the front end of your website, assuming no other changes were made to those Column blocks. This functionality is not ideal and is a current limitation of the plugin. That said, it is easy to avoid any unexpected results. If you ever enable FCM, just be careful disabling it in the future and make sure there are no FCM enabled block types with active visibility settings.

  2. When you enable FCM, this will add any previously unavailable block types to the Block Manager. You will now be able to control these new block types within the manager.

Uninstall

When you enable this setting, the Block Visibility plugin settings will be removed when the plugin is uninstalled. Under the hood, the block_visibility_settings option will be removed from your website database. If you ever reinstall Block Visibility, the default plugin settings will be applied.

Note that this setting does not remove the visibility settings from individual blocks. These settings, or “attributes”, will no longer do anything since Block Visibility has been uninstalled but will remain on each block until save-triggering changes are made.


Ready to try Block Visibility?

Unlock the power of the Block Editor with location controls, advanced block scheduling, and more!