Coding Tips & Tricks

How-to: Add responsiveness to WP embeds

To make your YouTube embeds responsive, add the code below to functions.php.

add_theme_support( 'responsive-embeds' );