• My Google searches on the topic have not been fruitful — I’m looking for the documentation on properly developing Block Widgets from scratch.

    The documentation on “Widgets” just talks about the new Block Editor, but not how to develop widgets for it.

    • This topic was modified 4 years, 9 months ago by pembo13.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Widget blocks are the same as standard post/page blocks, so if you follow the documentation about creating Gutenberg blocks, eg. https://developer.ww.wp.xz.cn/block-editor/handbook/tutorials/create-block/, and then install a plugin containing a block created this way it should be available in both the post/page and widgets editors.

    Thread Starter pembo13

    (@pembo13)

    @glendaviesnz thanks, I’ll review. I only want to create widget though.. this particular item would have no use as a post/page block.

    Moderator bcworkz

    (@bcworkz)

    There is not any difference any more. Widget areas and sidebars simply display blocks now. That said, you could still create a traditional widget and insert it via the Legacy Widget block. This block was created for reverse compatibility. Blocks are the way to go going forward.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Documentation on creating block widgets’ is closed to new replies.