Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro
Docs

Blocks

Turning a block off

1 minute to read Updated 1 week ago

A block that is off is no longer registered, so the editor does not offer it and the site shows nothing in its place. Its folder and its fields stay as they are, and it comes back when you turn it on.

The ... menu of a block card with Turn off, and the window that says how many pages use it
The … menu of a block card with Turn off, and the window that says how many pages use it.
  • From the list: the ... menu of its card → Turn off (and Turn on to bring it back).
  • From the block: the Active switch in its General tab.
  • From code:
PHP
add_filter( 'ugly_blocks_off', fn ( $off ) => array( ...$off, 'hero' ) );

The window that asks says how many pages use the block.

Did this article answer your question?