WP Manifestindependent plugin directory
manifest / editor / mhm-site-blocks

Site blocks

Block registration plugin for a WordPress website

by Mark Howells-Mead · github.com/markhowellsmead/mhm-site-blocks · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/markhowellsmead/mhm-site-blocks/archive/refs/heads/main.zip

Readme

WordPress Site Blocks

Description

This WordPress plugin is intended for use as a block registration plugin. By building and compiling blocks through this plugin, and not in the Theme, you can ensure that the blocks remain available if you choose to switch to another Theme.

Usage

  1. Install this as a plugin in your local WordPress installation.
  2. Run npm install in the plugin root folder. You'll need to be using the versions of Node and NPM specified in the engines section of package.json.
  3. Run npm start in the plugin root folder. Then add the blocks in the assets/src/blocks/ folder. Webpack will watech this folder for changes and build a single output file, which is enqueued in the block editor.
  4. This plugin doesn't currently load, handle or compile any CSS. That belongs in the Theme.

Author

Mark Howells-Mead | www.permanenttourist.ch | Since 1st February 2022

License

Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html

Read the full README on GitHub →