Several ACF field types would benefit from being able to select the Alignment; attribute align.
This doesn't appear to work for "align": "center"
Setting
OK?
none
OK
left
OK
right
OK
center
No
It appears that for aligncenter to work the block needs the class has-text-align-center.
See oik_server_side_wrapper() for example code, passing $extra_attributes to get_block_wrapper_attributes()
Several ACF field types would benefit from being able to select the Alignment; attribute
align
. This doesn't appear to work for "align": "center"It appears that for
aligncenter
to work the block needs the classhas-text-align-center
. Seeoik_server_side_wrapper()
for example code, passing$extra_attributes
toget_block_wrapper_attributes()