How to replace WordPress sidebars (widget areas) with Gutenberg

I’m trying to build my first Gutenberg theme, and I want to build a page template with the layout as shown below:

template wireframe

Pre-Gutenberg I would have built widget areas into the page template to create the layout. i.e. widget areas for the sidebar, and widget area 1 + 2.

I’m trying to do this now with blocks, and I want to know what correct approach or best practise is for replacing widget areas in Gutenberg when developing themes, could this be achieved with InnerBlocks, or NestedBlocks? Or some other means? Can anyone point me to examples?

1 Answer
1

Like @Alvaro said, You should start building blocks for widget areas. Once Phase 2 hit the core you can just simply show the blocks in other areas. Don’t bother developing for Pre-Gutenberg widgets, You will double your work load.

Leave a Comment