From 8fcb098c5b8616532e8bcdddbf5fc96a1c3d6374 Mon Sep 17 00:00:00 2001 From: Tim Morris Date: Tue, 1 Nov 2016 09:51:31 -0400 Subject: [PATCH] responsify video embeds --- functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functions.php b/functions.php index d9f242a..2c3a70e 100755 --- a/functions.php +++ b/functions.php @@ -59,4 +59,12 @@ class StarterSite extends TimberSite { new StarterSite(); +function wrap_embed_with_div($html, $url, $attr) { + + return '
' . $html . '
'; + +} + +add_filter('embed_oembed_html', 'wrap_embed_with_div', 10, 3); +