WP Manifestindependent plugin directory
manifest / editor / simple-block-visibility

Simple Block Visibility

A lightweight WordPress plugin allowing editors to choose to hide blocks depending on custom breakpoints.

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/valentin-grenier/simple-block-visibility/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Show or hide Gutenberg blocks based on custom breakpoints — no coding required.

Features

  • Hide any core Gutenberg block on Mobile, Tablet, Laptop, or Desktop
  • Define your own breakpoint pixel values in Settings > Block Visibility
  • Breakpoint labels update live in the editor to reflect your settings
  • Pure CSS approach — no JavaScript on the frontend, no layout shifts
  • Works with all core and custom Gutenberg blocks

How It Works

  1. The plugin registers hideOnMobile, hideOnTablet, hideOnLaptop, and hideOnDesktop boolean attributes on every core Gutenberg block
  2. A Visibility panel appears in the block's Inspector Controls (Settings tab)
  3. On the frontend, PHP injects a small `