Browse Source

Button 2: Add theme support for responsive embeds.

Laurel Fulford 6 years ago
parent
commit
e3ce7fb8d4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      button-2/functions.php

+ 3 - 0
button-2/functions.php

@@ -82,6 +82,9 @@ function button_2_setup() {
 
 		'default-image' => esc_url( get_template_directory_uri() ) . '/img/buttonbg20170303.png',
 	) ) );
+
+	// Add support for responsive embeds.
+	add_theme_support( 'responsive-embeds' );
 }
 endif; // button_2_setup
 add_action( 'after_setup_theme', 'button_2_setup' );