bobbingwide / field-block-for-acf-pro

Field block for ACF PRO
https://www.oik-plugins.com/oik-plugins/field-block-for-acf-pro/
GNU General Public License v2.0
3 stars 0 forks source link

Ensure ACF field block output supports different settings of the `align` attribute #12

Open bobbingwide opened 1 year ago

bobbingwide commented 1 year ago

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()