Skip to content

preseto/block-context

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
js
 
 
php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Block Context for WordPress

A WordPress plugin to show or hide WordPress editor (Gutenberg) blocks in context.

Build Status Coverage Status

Source of the Gutenberg Block Context plugin for WordPress.

Requirements

Install

  • Search for "Block Context" under "Plugins → Add New" in your WordPress dashboard.

  • Install as a Composer dependency:

    composer require preseto/block-context
    

Feature Roadmap

See the roadmap.

Development

  1. Clone the plugin repository:

    git clone https://github.com/preseto/block-context.git
    cd block-context
    
  2. Setup the development environment and tools using Node.js and Composer:

    npm install
    
  3. 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).

  4. Build the plugin JS and CSS assets:

    npm run build
    

Screenshots

Block Context settings

Credits

Created by Kaspars Dambis.