A WordPress plugin that adds visual tools to the block editor for easier block debugging and development. This plugin works only in the block editor and does not affect the front end of your site.
- Download the latest release zip file from the Releases page.
- Go to WordPress Admin > Plugins > Add New > Upload Plugin.
- Upload the zip file and activate the plugin.
- Clone the repository or download the zip file.
- Ensure you run
npm installandnpm run buildto generate the necessary files. - Upload the
block-visual-toolsfolder to/wp-content/plugins/. - Activate through WordPress Admin > Plugins.
- Open any page or post in the WordPress editor.
- Click on any block to select it.
- Look in the right sidebar for "Visual Tools."
- Use the available tools:
- Hide Block: Temporarily hide blocks while editing.
- Show Block Structure: Visualize block boundaries and nesting.
- Node.js (v14 or later)
- npm or yarn
- Local WordPress development environment
-
Clone the repository:
git clone https://github.com/gabediaz/block-visual-tools.git cd block-visual-tools -
Install dependencies:
npm install
-
Start development mode:
npm run start
-
Create production build:
npm run build
-
Required files for distribution:
block-visual-tools/ ├── build/ # Built files │ ├── index.js │ ├── index.asset.php │ └── style.css ├── block-visual-tools.php ├── package.json └── README.md
- WordPress 6.0 or higher
- PHP 7.4 or higher
GPL v2 or later
For issues and feature requests, please use the GitHub issues page.
Contributions are welcome! Please feel free to submit a Pull Request.