Easy custom blocks using InnerBlocks in Gutenberg

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

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

  • @seiuwatches
    @seiuwatches Год назад

    Very informative and well explained! Looking forward to each new video! :)

    • @BrianCoords
      @BrianCoords  Год назад

      I appreciate that! Hopefully I can get to the next one soon!

  • @PaweBystrzan
    @PaweBystrzan 2 месяца назад +1

    After a year I think it would be nice to have option to make a pattern - just like you made a custom block, but pattern, save custom css inside pattern and one click option to convert pattern to block.
    Sometimes in the past I used CBB plugin (Content Blocks Builder) - it has some nice workflow to create blocks from blocks, patterns etc, but unfortunately not in core way. Hope WP core team will move in this area.
    As always - great video tutorial,
    Best,
    Paul

    • @BrianCoords
      @BrianCoords  Месяц назад

      Yep I agree - easily bundling extra CSS/styles with patterns would be huge.

  • @Mhmm-sr
    @Mhmm-sr 7 месяцев назад

    Thank you so much for the tutorial, it helped me a lot with my Gutenberg Block Problems

  • @PaulMcCannWebBuilder
    @PaulMcCannWebBuilder Год назад

    If Copilot was smart enough to catch trailing commas in JSON, we'd all be done with our projects much sooner :)

  • @marcjaner9937
    @marcjaner9937 3 месяца назад

    Hey, one question. Isn't a render.php needed when this is used in a production wordpres site? Thanks!

    • @BrianCoords
      @BrianCoords  3 месяца назад

      There are two types of blocks - dynamic blocks that use a PHP file to render the final block, and static blocks, which save the final markup in the content and don't need any additional PHP files to show up. This examples uses a static block.

  • @reyanshxd2043
    @reyanshxd2043 9 месяцев назад

    Hello, is it possible to add multiple Innerblocks in a single block?

    • @BrianCoords
      @BrianCoords  9 месяцев назад +1

      No, sorry - only one set of InnerBlocks per a block. You could have two custom blocks, each with their own InnerBlocks, but that's maybe getting a little complicated.