Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
responsify video embeds
  • Loading branch information
tsm15002 committed Nov 1, 2016
1 parent ac5cbae commit 8fcb098
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions functions.php
Expand Up @@ -59,4 +59,12 @@ class StarterSite extends TimberSite {

new StarterSite();

function wrap_embed_with_div($html, $url, $attr) {

return '<div class="video-container">' . $html . '</div>';

}

add_filter('embed_oembed_html', 'wrap_embed_with_div', 10, 3);


0 comments on commit 8fcb098

Please sign in to comment.