瀏覽代碼

Add support for newer Gutenberg features to Seedlet and Varia themes

Ben Dwyer 4 年之前
父節點
當前提交
ae13b4e606
共有 2 個文件被更改,包括 13 次插入1 次删除
  1. 1 1
      seedlet/functions.php
  2. 12 0
      varia/functions.php

+ 1 - 1
seedlet/functions.php

@@ -256,7 +256,7 @@ if ( ! function_exists( 'seedlet_setup' ) ) :
 		add_theme_support( 'experimental-link-color' );
 
 		// Add support for experimental cover block spacing.
-		add_theme_support( 'experimental-custom-spacing' );
+		add_theme_support( 'custom-spacing' );
 
 		// Add support for custom units.
 		add_theme_support( 'custom-units' );

+ 12 - 0
varia/functions.php

@@ -181,6 +181,18 @@ if ( ! function_exists( 'varia_setup' ) ) :
 		// Add support for responsive embedded content.
 		add_theme_support( 'responsive-embeds' );
 
+		// Add support for custom line height controls.
+		add_theme_support( 'custom-line-height' );
+
+		// Add support for experimental link color control.
+		add_theme_support( 'experimental-link-color' );
+
+		// Add support for experimental cover block spacing.
+		add_theme_support( 'custom-spacing' );
+
+		// Add support for custom units.
+		add_theme_support( 'custom-units' );
+
 		// Add support for Global Styles.
 		add_theme_support(
 			'jetpack-global-styles',