Hey, I’m using ACF Blocks to create a custom column/grid system using the block editor, and the fact that ACF is using the <div class="acf-inner-blocks-container"></div>
wrapper element is making it a bit difficult. For my grid (or flex for that matter) system to work, I need my nested elements to be direct children of the parent element.
I thought I could work around this by directly using InnerBlocks
as a wrapper and changing its class, which is possible.
I would also like to pass other attributes (like style
(for CSS variables) and data-x
) to the InnerBlocks
element, but they seem to be getting stripped.
Is this please possible?
And yes, I’m aware I can disable the wrapper on the frontend – but I want to have BE and FE visually as close as possible.
Thanks in advanced for any pointers.