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.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.