Skip to content

Commit

Permalink
feat: disable column alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrabb committed Apr 12, 2020
1 parent de6fd6e commit 30b74de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,12 @@ domReady( () => {

addFilter( 'blocks.registerBlockType', 'newspack-newsletters/core-blocks', ( settings, name ) => {
/* Remove left/right alignment options wherever possible */
if ( 'core/paragraph' === name || 'core/social-links' === name || 'core/buttons' === name ) {
if (
'core/paragraph' === name ||
'core/social-links' === name ||
'core/buttons' === name ||
'core/columns' === name
) {
settings.supports = { ...settings.supports, align: [] };
}
return settings;
Expand Down

0 comments on commit 30b74de

Please sign in to comment.