Sensitive Image

Blur sensitive images and covers until a visitor chooses to reveal them.

Lauren Gray Avatar

Sensitive Image adds a Sensitive style to the core Image and Cover blocks. Visitors see a blurred version with a warning, and the media stays hidden until they choose to reveal it with a click, a tap or the keyboard.

Before you start

  • WordPress 6.2 or later
  • PHP 7.4 or later
  • The block editor. The style works on the core Image and Cover blocks.

Install

  1. In your WordPress dashboard, go to Plugins → Add New Plugin.
  2. Click Upload Plugin.
  3. Choose the plugin zip file.
  4. Click Install Now.
  5. Click Activate.

There’s no settings page. You turn it on block by block.

How to use

Blur an image

  1. Edit a post or page and select an Image block.
  2. In the block settings sidebar, open the Styles panel.
  3. Choose Sensitive.
  4. Save or publish, then view the page on the front end.

The image is blurred behind a dark overlay that reads “This image contains sensitive content. Tap to reveal.” A caption, if you added one, stays visible below the image.

Blur a Cover block

  1. Select a Cover block.
  2. In the Styles panel, choose Sensitive.
  3. Save or publish.

On a Cover block, the background image or video is blurred and the content inside the cover (headings, text, buttons) is hidden until the visitor reveals it. The block keeps its full height, so the layout doesn’t jump.

What visitors see

  • Clicking or tapping the blurred block reveals it.
  • Keyboard users can tab to the block and press Enter or Space to reveal it. Screen readers announce it as a button with the warning text.
  • If the image is linked, the first click reveals it instead of following the link. Click again to follow the link.
  • Revealing doesn’t stick. Reload the page and the media is blurred again.

Heads up: the blur only shows on the front end. In the editor, the block looks normal so you can keep working with it.

Block options

  • Sensitive (block style on Image and Cover): blurs the media and adds the tap-to-reveal warning. Off by default; each block starts with its usual default style.

The warning text isn’t a setting. It’s translatable, so it follows your site language when a translation is available.

The plugin’s CSS and JavaScript only load on pages that use the Sensitive style. Blocks inside the main post content get their styles in the page head. Sensitive blocks placed elsewhere (template parts, widgets, synced patterns) load their styles in the footer, so they may briefly show unblurred while the page loads.

Developer reference

Coming soon: the hooks, filters and functions you can use with this plugin from your theme or a code snippet.

FAQs

Does this protect the original image file?

No. It’s a visual warning only. The image is blurred on the page, but the original file and its URL are still accessible.

Does the reveal stay after reloading the page?

No. Every page load starts blurred.

Does it need any JavaScript libraries?

No. It uses a small plain JavaScript file and CSS, with no other dependencies.

Does it change my saved content?

Only by adding the block style class (is-style-sensitive) like any other block style. Switch the block back to its default style and the blur is gone.

Does it respect reduced motion?

Yes. If a visitor’s device is set to reduce motion, the blur fade transition is turned off.