From 38cae9f8e5e9d327bbd67c9bc935cf0ddb6d6d55 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 15 Jan 2021 17:43:02 -0600 Subject: [PATCH] enhance(theme): Add theme support for `custom-line-height` --- app/setup.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/setup.php b/app/setup.php index 717157a..079a096 100755 --- a/app/setup.php +++ b/app/setup.php @@ -92,7 +92,13 @@ add_action('after_setup_theme', function () { add_theme_support('custom-units', 'rem', 'vw'); /** - * Enable support for custom block spacing controls. + * Enable support for custom line heights in the editor. + * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#supporting-custom-line-heights + */ + add_theme_support('custom-line-height'); + + /** + * Enable support for custom block spacing control in the editor. * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#spacing-control */ add_theme_support('custom-spacing');