Support

Account

Home Forums Gutenberg How to allow Inner Blocks with ACF in Gutenberg Reply To: How to allow Inner Blocks with ACF in Gutenberg

  • FWIW, this is admittedly very very hackish, but the way I’ve been handling this until a better solution comes in is to create a custom block (called “Section”) which has an option to set to either open or close. I then put that block before and after (set to “open” and then “close” respectively) the blocks I want to “wrap” in a section container. Then in the block template I simply render either an opening HTML tag or a closing HTML tag. I also add additional (conditional) fields to set background colour/padding and other customizable things.