# Turning a block off

Source: https://uglydev.com/docs/blocks/turning-a-block-off/
Updated: 20 November 2026

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](https://uglydev.com/wp-content/uploads/2026/11/shot-turning-a-block-off-1.webp)

*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.
