Skip to content

Introduces a simple method for defining block areas to use the block editor outside of the post content.

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
license.txt
Notifications You must be signed in to change notification settings

wprig/block-areas

Repository files navigation

WordPress plugin WordPress

Block Areas

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.

See the WP Rig Blockade project for experimental usage of it.

Requirements

  • WordPress >= 5.0
  • PHP >= 7.0

Usage

After activating the plugin, you can create and edit block areas under Appearance > Block Areas. There should be two block areas already, header and footer.

Block areas are identified by their unique slug. Since header and 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' )).

Contributing

Any kind of contributions to Block Areas are welcome. Please read the contributing guidelines to get started.

About

Introduces a simple method for defining block areas to use the block editor outside of the post content.

Resources

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
license.txt

Stars

Watchers

Forks

Packages

No packages published