Tagged: , , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5273

    Please take a look at

    http://you-can-fight.com/krav-maga

    When you click on Krav Maga in the Main Menu, this menu spreads but it is partial shown BEHIND the video.

    Of course I’d like it in front.

    How to fix?

    #49504

    Hey,

    it’s a known problem with WordPress oembed media and not directly theme related (we use the standard oembed function). Someone posted a fix: http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html which basically adds the opaque attribute to the embedded flash element.

    Place following code at the end of function.php:

    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);

    #49505

    Yes, fixed.

    Thank U.

    #49506

    Glad Dude could help you out :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Mega Menu spreads behind video’ is closed to new replies.