Let’s Build a Custom Block in 15 Minutes

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 5

  • @kevinwagner5023
    @kevinwagner5023 Год назад +1

    excellent, straight-forward walk thru on building a block. Thanks for sharing!

  • @alreadyghosts7727
    @alreadyghosts7727 Год назад +2

    Dang, this just gets you rolling with blocks. This is great!

  • @TomJardine-Smith
    @TomJardine-Smith 11 месяцев назад

    I have a couple of questions if anyone can point me in the right direction?
    1) My version of the "Hello Dolly" block from this tutorial works on the front end, but not in the block editor. On the front end I see the lorem ipsum that I have being returned from the function, but in the editor I see the "hello from a dynamic block" text that comes with the create block package.
    2) What if I don't want to create this as a plugin? If I'm building a theme, for example, and I want to create blocks that come with the theme - how would I adjust the above tutorial to create and register the block from the theme instead?