Support

Account

Home Forums Gutenberg Limit amount of Innerblocks to x number

Unread

Limit amount of Innerblocks to x number

  • I’m creating my own columns block so I can have a little more flexibility when it comes to the content.

    However I’ve ran into a problem I don’t want the customer to add unlimited columns. Only 1 or 2.

    Now to have maximum flexibility I want the appender to hide when 2 blocks are added. However with my limited JS knowledge I can’t figure it out.

    I ran across this post: https://ryanwelcher.com/2020/10/limiting-the-block-count-for-innerblocks/ and was wondering if someone could help me get this done with ACF.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.