Skip to content

Instantly share code, notes, and snippets.

@topdown
Created July 5, 2012 09:01
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 topdown/3052468 to your computer and use it in GitHub Desktop.
Save topdown/3052468 to your computer and use it in GitHub Desktop.
WordPress embedded video hides drop menu fix
<script type="text/javascript">
/*
WordPress embedded video hides drop menu fix
Put this code in your header.php after wp_head(); and before </head>
It assumes you already have jQuery loaded
*/
jQuery(document).ready(function () {
jQuery('iframe').each(function () {
var url = jQuery(this).attr("src");
jQuery(this).attr("src", url + "&wmode=transparent");
});
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment