diff --git a/app/setup.php b/app/setup.php index d426cca..b2fe000 100755 --- a/app/setup.php +++ b/app/setup.php @@ -91,6 +91,12 @@ add_action('after_setup_theme', function () { */ add_theme_support('custom-units', 'rem', 'vw'); + /** + * Enable support for custom block spacing controls. + * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#spacing-control + */ + add_theme_support('custom-spacing'); + /** * Disable custom colors in the editor. * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#disabling-custom-colors-in-block-color-palettes @@ -115,12 +121,6 @@ add_action('after_setup_theme', function () { */ remove_theme_support('core-block-patterns'); - /** - * Enable support for custom block spacing controls. - * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#spacing-control - */ - add_theme_support('custom-spacing'); - /** * Enable plugins to manage the document title. * @link https://developer.wordpress.org/reference/functions/add_theme_support/#title-tag