Created
May 20, 2015 18:36
-
-
Save louisnovick/6088bb5975762c2fe174 to your computer and use it in GitHub Desktop.
Used Foundation to make an old Wordpress site responsive. The old site had a lot of old video embeds wrapped in <object>. This will wrap all object tags with Foundation's flex video css making them responsive.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( "object" ).wrap( "<div class='flex-video widescreen vimeo'></div>" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just used this another Foundation site. Substituted object with iframe for youtube embeds, worked like a charm.