Hello Blocks! Coding a custom block

2 responses on “Hello Blocks! Coding a custom block

  1. Elizabeth Meyer

    Maybe worthwhile to note here that this isn’t true anymore: “Blocks must be registered from a plugin. Themes cannot register blocks.”

    Even though WordPress recommends “… pairing blocks with WordPress plugins rather than themes, because only using plugin ensures that all blocks still work when your theme changes.” it is now possible to register blocks from inside a theme.

    See documentation for –no-plugin mode here:
    https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/

    Liked by 1 person

  2. kensley

    Would it be possible to add a future lesson no how to create inner blocks? For example if we create a custom block unordered list. I would want each list item to also be a block. Is this possible today?

    Like

Continue the discussion

Published

March 29, 2022

Have you always wanted to create your own Gutenberg block but didn’t know where to start? Or, maybe you tried and found the process daunting or confusing? If so, then this intermediate learn-up is for you! We are going to use Replit.com for this session to allow attendees to use their web browser to work in a pre-configured WordPress installation.

Rate this:

Speakers

Ryan Welcher 12

Language

English 10263

Download
MP4: Low, Original
Subtitles
TTML: English
Subtitle this video →
Producer
%d bloggers like this: