Skip to content

Instantly share code, notes, and snippets.

@peterhadorn
Forked from schilke/functions.php
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterhadorn/6bcae15a1245d94d95af to your computer and use it in GitHub Desktop.
Save peterhadorn/6bcae15a1245d94d95af to your computer and use it in GitHub Desktop.
/* Add responsive container to embeds */
function jsc_embed_html( $html ) {
return '<div class="video-container">' . $html . '</div>';
}
add_filter( 'embed_oembed_html', 'jsc_embed_html', 10, 3 );
add_filter( 'video_embed_html', 'jsc_embed_html' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment