Disable Block – Hide blocks in the frontend Disable Block – Hide blocks in the frontend

Disable Block – Hide blocks in the frontend

Created by: Sascha Paukner

Rating:
Downloaded: 643 times

Disable Block adds a simple button to the editor to disable the block on the frontend, hiding it from viewers.
Perfect for blocks that are not ready to be viewed by the public, but you are working on in the backend.

It adds subtle markings in the editor, so that you can easily see which blocks are disabled.

Features

  • Show or hide blocks with one click
  • Adds subtle markings and block name, so you can see which block is disabled, leaving most of the design in the editor intact.

Limitations

Does not work with the Classic Block, Widget Block or Widget Area Block [‘core/freeform’, ‘core/legacy-widget’, ‘core/widget-area’], as the those blocks do not support block attributes. Does also not work with the HTML Block [‘core/html’] inside the Widget Screen, as this one also does not support block attributes there.

Configuration

Just activate the plugin. The “Disable Block” button will then appear in the toolbar of each block.

Screenshots

  • The 'Disable Block' button at work in the block editor.

Categories

Get New Themes & Resources