Youtube vids load at top level and appear infront of upper nav and lightbox

when youtube vids are uploaded via Activity Plus plug in they are appear at the top layer / level, meaning that they show at the front, above the lightbox and upper nav.

My Developer provided me with the following information about a fix…


I just spent a couple of hours trying to debug this but it’s something that Incsub will need to fix in their Activity Plus plugin. They need their shortcode for the videos (bpfb_video) to add <param name=”wmode” value=”transparent”> to the YouTube videos.

I use the code below in normal WordPress installs to work around this issue:

function add_video_wmode_transparent($html, $url, $attr) {

if (strpos($html, “<embed src=” ) !== false) {

$html = str_replace(‘</param><embed’, ‘</param><param name=”wmode” value=”transparent”></param><embed wmode=”transparent” ‘, $html);

return $html;

} else {

return $html;



add_filter(’embed_oembed_html’, ‘add_video_wmode_transparent’, 10, 3);

Can you please pass this code on to Incsub so that they can integrate something similar into their Activity Plus plugin to resolve this!