Browse Source

Add basic Gutenberg support.

alaczek 7 years ago
parent
commit
8e08f5801b
1 changed files with 14 additions and 0 deletions
  1. 14 0
      radcliffe-2/functions.php

+ 14 - 0
radcliffe-2/functions.php

@@ -77,6 +77,20 @@ function radcliffe_2_setup() {
 
 	// Add theme support for selective refresh for widgets.
 	add_theme_support( 'customize-selective-refresh-widgets' );
+
+	// Add support for Gutenberg.
+	add_theme_support( 'gutenberg', array(
+		// Theme supports wide images, galleries and videos.
+		'wide-images' => true,
+
+		// Make specific theme colors available in the editor.
+		'colors' => array(
+			'#ffffff',
+			'#222222',
+			'#666666',
+			'#ca2017',
+		),
+	) );
 }
 endif;
 add_action( 'after_setup_theme', 'radcliffe_2_setup' );