Hi, when creating a block via acf_register_block_type()
, the alignment options only show left, center, and right. Wide and full are missing as options.. My theme has them enabled and they show for other blocks, but any custom blocks do not. Thank you.
You need to add these options to the “supports” array in your acf_register_block_type() function:
'supports' => array(
'align' => array( 'left', 'right', 'center', 'wide', 'full' ),
),
This can be found in the documentation for the ARBT function
I’ve been experiencing this same issue. Wide and Full do not display in the dropdown menu even if they are specified. Only center, left and right will display.
@apmeyer Have added add_theme_support( 'align-wide' );
to your functions.php
?
@winston-grace Yep. I discovered that inner blocks are not allowed to use certain alignments – which is very frustrating, but not ACF’s fault. It’s a design decision by the Gutenberg team.