Install
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.zipNo 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
- The plugin registers
hideOnMobile,hideOnTablet,hideOnLaptop, andhideOnDesktopboolean attributes on every core Gutenberg block - A Visibility panel appears in the block's Inspector Controls (Settings tab)
- On the frontend, PHP injects a small `