innerblocks with visual builder

Support MB Blocks innerblocks with visual builder

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30275
    luigi gaudinoluigi gaudino
    Participant

    Hello!

    How can i use Nested Blocks (innerblocks) using visual builder?

    Tried to follow this docs but unsucceful: https://docs.metabox.io/extensions/mb-blocks/#nested-blocks-innerblocks

    Thanks

    #30280
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can add the code <InnerBlocks /> to the Render Code area in the Builder. Screenshot https://imgur.com/cEiGJ1Q

    #30283
    luigi gaudinoluigi gaudino
    Participant

    thanks it's working and very simple, my problem is solved.

    I noticed however that to add innerblocks i have:
    1: create at least 1 custom field in the block group
    2: custom field created must be not be empty
    3: i have to be in preview mode
    otherwise in gutenberg backend i see notice: Click the Edit icon in the block toolbar to enter content.
    (Added screenshot to explain better): https://imgur.com/a/V6oRzW5

    There is a way to add innerblocks without this requirements? (i'm trying to create a container for other custom blocks)

    #30290
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I'm afraid that there is no way in current. You have to create a field, add a value and add inner blocks in the preview mode of the custom block. I will inform the development team to improve point 2.

    #30292
    luigi gaudinoluigi gaudino
    Participant

    Ok thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.