0

I'm working with Gutenberg blocks via ACF. It's great compromise between classic / ACF and the Gutenberg. Another great thing is <InnerBlocks />. However, in one block can be used only one <InnerBlocks /> tag, so it's kind of problematic, if I want to have more control over the html structure in my block. So: I have block with two divs (two columns). In each one I want to use Gutenberg blocks. Is there any way to insert specified block directly in my code, like image or group, without inner block?

1 Answer 1

1

No, you can't have multiple InnerBlocks. But you can create a second intermediate block, just like WordPress Core does with the columns and column block.

1
  • Thanks! But can I create a second intermediate block directly inside ACF block?
    – D_P
    Sep 4, 2021 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.