A WordPress plugin to show or hide WordPress editor (Gutenberg) blocks in context.
Source of the Gutenberg Block Context plugin for WordPress.
- WordPress 5.0+ or the Gutenberg Plugin.
- Composer and Node.js for dependency management.
- Vagrant and VirtualBox for local testing environment.
-
Search for "Block Context" under "Plugins → Add New" in your WordPress dashboard.
-
Install as a Composer dependency:
composer require preseto/block-context
See the roadmap.
-
Clone the plugin repository:
git clone https://github.com/preseto/block-context.git cd block-context
-
Setup the development environment and tools using Node.js and Composer:
npm install
-
Start a virtual testing environment using Vagrant and VirtualBox:
vagrant up
which will be available at http://blockcontext.local after provisioning (username:
admin
, password:password
). -
Build the plugin JS and CSS assets:
npm run build
Created by Kaspars Dambis.