Skip to content

Commit

Permalink
Correct align classes
Browse files Browse the repository at this point in the history
Block "align" property is not the same as the alignment class on the front-end. This fixes the class name.
  • Loading branch information
MWDelaney committed Feb 18, 2019
1 parent fb30591 commit 64d2128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sage-acf-gutenberg-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function sage_blocks_callback($block)

// Set up the block data
$block['slug'] = $slug;
$block['classes'] = implode(' ', [$block['slug'], $block['className'], $block['align']]);
$block['classes'] = implode(' ', [$block['slug'], $block['className'], 'align'.$block['align']]);

// Use Sage's template() function to echo the block and populate it with data
echo \App\template("blocks/${slug}", ['block' => $block]);
Expand Down

0 comments on commit 64d2128

Please sign in to comment.