Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bobbingwide opened this issue Jul 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Jul 12, 2023

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

@bobbingwide bobbingwide self-assigned this Jul 12, 2023
@bobbingwide bobbingwide added the bug Something isn't working label Jul 12, 2023
bobbingwide added a commit that referenced this issue Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant