Ver Fonte

Merge branch 'illustratr-add-gutenberg-support' of github.com:Automattic/themes into illustratr-add-gutenberg-support

Caroline Moore há 6 anos atrás
pai
commit
46b5b4c1a4
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      illustratr/functions.php

+ 5 - 2
illustratr/functions.php

@@ -97,6 +97,9 @@ function illustratr_setup() {
 		'comment-form',
 		'comment-form',
 		'gallery',
 		'gallery',
 	) );
 	) );
+
+	// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
 }
 }
 endif; // illustratr_setup
 endif; // illustratr_setup
 add_action( 'after_setup_theme', 'illustratr_setup' );
 add_action( 'after_setup_theme', 'illustratr_setup' );
@@ -242,8 +245,8 @@ function illustratr_scripts() {
 }
 }
 add_action( 'wp_enqueue_scripts', 'illustratr_scripts' );
 add_action( 'wp_enqueue_scripts', 'illustratr_scripts' );
 
 
-/** 
- * Gutenberg Editor Styles 
+/**
+ * Gutenberg Editor Styles
  */
  */
 function apostrophe_2_editor_styles() {
 function apostrophe_2_editor_styles() {
 	wp_enqueue_style( 'illustratr-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
 	wp_enqueue_style( 'illustratr-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');