From d69f737f2e5e769cbc264cd58e074de0253dfe26 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Tue, 6 Aug 2019 12:09:59 +0200 Subject: [PATCH] Embeds: add support for Core Responsive Embeds This allows embeds like Videos to look better when using custom block styles such as the "Full Width" embeds. --- functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions.php b/functions.php index 64e98a7..9275bc8 100644 --- a/functions.php +++ b/functions.php @@ -79,6 +79,13 @@ function susty_setup() { 'flex-width' => true, 'flex-height' => true, ) ); + + /** + * Add support for Responsive embeds. + * + * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#responsive-embedded-content + */ + add_theme_support( 'responsive-embeds' ); } endif; add_action( 'after_setup_theme', 'susty_setup' );