Skip to content

Instantly share code, notes, and snippets.

@louisnovick
Created May 20, 2015 18:36
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 louisnovick/6088bb5975762c2fe174 to your computer and use it in GitHub Desktop.
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.
$( "object" ).wrap( "<div class='flex-video widescreen vimeo'></div>" );
@louisnovick
Copy link
Author

Just used this another Foundation site. Substituted object with iframe for youtube embeds, worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment