Simple Hide/Show Blocks
A WordPress plugin to easily hide/show Block Editor (Gutenberg) blocks with the flick of a switch.
by Shaun Jenkins · github.com/newjenk/simple-hide-show-blocks · website
★ 1stars
9release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/newjenk/simple-hide-show-blocks/releases/download/v1.0.0/simple-hide-show-blocks.zipFrom the readme
Simple Hide/Show Blocks for WordPress
A WordPress plugin that allows you to run simple A/B tests by choosing to display one of two blocks ('Block A' or 'Block B') or hiding both.
Overview
This plugin provides a straightforward way to control the visibility of content blocks on your website. It's ideal for simple A/B testing, gradually rolling out new content or preparing content in the background.
The core functionality is managed through a simple settings page where you can select whether to show Block A, Block B, or neither. The plugin is designed to be lean and performant, using core WordPress functions without any unnecessary libraries, pop-ups or other admin interface clutter. It feels like it's baked right into WordPress.
This was used in production on onform.net to great effect when testing pricing variations.
How to Use
1. Install and activate the plugin.
2. Add the 'SHSB Block A' and 'SHSB Block B' blocks to your posts or pages and populate them with your desired content.
3. Navigate to the Simple Hide/Show Blocks settings page (Settings Hide/Show Blocks) in your WordPress admin menu.
4. Select whether to display 'Block A', 'Block B', or 'None'.
5. Save your c
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.0.0 | Jun 9, 2025 | simple-hide-show-blocks.zip | 9 |