MWDelaney / sage-acf-wp-blocks

Composer library for generating ACF Gutenberg blocks from templates. Intended for use with Roots/Sage (http://roots.io)
346 stars 66 forks source link

Align text and Align content not adding classes #58

Closed daniela-waara closed 3 years ago

daniela-waara commented 3 years ago
SupportsAlignContent: true
SupportsAlignText: true

The selector appears in the editor but doesn't seem to add any new align-classes in $block['classes'] when chosen. How do I use them?

colinswinney commented 2 years ago

@daniela-waara did you ever get this figured out by chance? I'm having the same problem.

daniela-waara commented 2 years ago

@colinswinney yes, in the end i figured out that you needed to use $block['align'], $block['align_content'] and $block['align_text'] to get the positions

colinswinney commented 2 years ago

@daniela-waara you're awesome, thank you for responding so quickly.