浏览代码

Canard: Add theme support for responsive embeds.

Laurel Fulford 6 年之前
父节点
当前提交
35066f221b
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      canard/functions.php

+ 5 - 2
canard/functions.php

@@ -64,6 +64,9 @@ function canard_setup() {
 	add_image_size( 'canard-featured-content-thumbnail', 915, 500, true );
 	add_image_size( 'canard-featured-content-thumbnail', 915, 500, true );
 	add_image_size( 'canard-single-thumbnail', 1920, 768, true );
 	add_image_size( 'canard-single-thumbnail', 1920, 768, true );
 
 
+	// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
+
 	// Add custom colors to Gutenberg
 	// Add custom colors to Gutenberg
 	add_theme_support(
 	add_theme_support(
 		'editor-color-palette', array(
 		'editor-color-palette', array(
@@ -281,8 +284,8 @@ function canard_scripts() {
 }
 }
 add_action( 'wp_enqueue_scripts', 'canard_scripts' );
 add_action( 'wp_enqueue_scripts', 'canard_scripts' );
 
 
-/** 
- * Gutenberg Editor Styles 
+/**
+ * Gutenberg Editor Styles
  */
  */
 function canard_editor_styles() {
 function canard_editor_styles() {
 	wp_enqueue_style( 'canard-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
 	wp_enqueue_style( 'canard-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');