Site icon Hip-Hop Website Design and Development

Use gutenberg block editor on plugin web page (outdoors of a put up)

I might like to make use of the block editor to handle content material of the site-wide footer. With the basic editor, I merely must register a plugin web page and add a subject that is only a wp_editor occasion. I recall seeing one thing someplace mentioning assist for working Gutenberg outdoors the context of a put up, however I can not observe down the precise directions, and skimming over edit-form-blocks.php does not make it clear what I want.

Replace: My at the moment answer is to only use resusable blocks; I’ve uncovered the supervisor to the admin menu, permitting customers to create reusable blocks outdoors of a put up. I then registered settings to permit assigning a reusable block to varied template areas of the theme (just like the Footer or, nowadays, the 404 Web page content material).