Skip to content
Permalink
d49217a352
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (15 sloc) 399 Bytes
<?php
/*
*
* SSW Functions File
*
*/
//Add wmode=transparent to fix the issue with the nav disappearing behind flash embeds.
function add_video_embed_note($html, $url, $attr) {
if(strpos($html,'x-shockwave-flash') !== false){
$html = str_replace('<embed','<embed wmode="transparent"',$html);
}
return $html;
}
add_filter('embed_oembed_html', 'add_video_embed_note', 10, 3);
?>