admin管理员组文章数量:1289363
I'm working with Gutenberg blocks via ACF. It's great compromise between classic / ACF and the Gutenberg. Another great thing is <InnerBlocks />
. However, in one block can be used only one <InnerBlocks />
tag, so it's kind of problematic, if I want to have more control over the html structure in my block. So: I have block with two divs (two columns). In each one I want to use Gutenberg blocks. Is there any way to insert specified block directly in my code, like image
or group
, without inner block?
I'm working with Gutenberg blocks via ACF. It's great compromise between classic / ACF and the Gutenberg. Another great thing is <InnerBlocks />
. However, in one block can be used only one <InnerBlocks />
tag, so it's kind of problematic, if I want to have more control over the html structure in my block. So: I have block with two divs (two columns). In each one I want to use Gutenberg blocks. Is there any way to insert specified block directly in my code, like image
or group
, without inner block?
1 Answer
Reset to default 1No, you can't have multiple InnerBlocks. But you can create a second intermediate block, just like WordPress Core does with the columns
and column
block.
本文标签: ACF and Gutenberg blockhow to use blocks without ltInnerBlocks gt
版权声明:本文标题:ACF and Gutenberg block, how to use blocks without <InnerBlocks >? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741391641a2376135.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论