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

Site blocks

Block registration plugin for a WordPress website

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/markhowellsmead/mhm-site-blocks/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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