Gutenberg InnerBlocks with ACF Blocks - How to enable multiple buttons?

I'm trying to use Gutenberg's InnerBlocks with ACF Blocks in my allowedBlocks I have [ 'core/heading', 'core/paragraph', 'core/buttons'] In my 'core/buttons' block I'd like to allow multiple buttons, but it only seems to enable one.

My block template is as follows:

[
    [
         'core/heading',
         [
             'level'       = 3,
             'placeholder' = __( Add Heading..., THEMENAME ),
             'align'       = 'center',
             'className'   = 'has-text-align-center',
         ],
     ],
    [
          'core/paragraph',
          [
               'placeholder' = __( Add paragraph text..., THEMENAME ),
               'align'       = 'center',
          ],
    ],
    [
          'core/buttons',
          [
               'align'       = 'center',
          ],
    ],
] 

Additionally the align 'center' doesn't seem to work for this block.

Topic block-editor Wordpress

Category Web


if you have a look at this site: https://developer.wordpress.org/block-editor/reference-guides/core-blocks/#buttons

You can see that "Core/Buttons" (plural) only supports "full/wide" on "align". You can however use "align" => "center" on "core/button". I don't know how you can add multiple buttons inside "core/buttons", but you can however add multiple "core/button" inside your template:

[ 'core/button', [ 'align' => 'center' ] ],
[ 'core/button', [ 'align' => 'center' ] ],

Hope this helps!

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.