Introduces a simple method for defining block areas to use the block editor outside of the post content.
This is an experimental plugin that explores basic usage of Gutenberg blocks outside of the content bubble, on a sitewide level.
In the long term it will likely eliminate itself once WordPress core and Gutenberg will have completed the next phase of advancing to the sitewide level. The plugin exists as a baseline to have an easy way for experimenting with similar functionality already today.
After activating the plugin, you can create and edit block areas under Appearance > Block Areas. There should be two block areas already,
Block areas are identified by their unique slug. Since
footer are expected to exist, make sure not to delete them.
In order to print a specific block area, for example in your theme, use
block_areas()->render( $slug ) (e.g.
block_areas()->render( 'header' )).