Submenu over Youtube fix breaks IE
-
all menu and submenu items have a high z-index:
content has z index of 0, nothing else has a z index.FF: Submenu over Youtube
Chrome: submenu under YouTube
IE: submenu under YouTubeAfter putting
<!-- add opaque to all embedded flash --> <?php function add_transparent($oembvideo) { $patterns = array(); $replacements = array(); $patterns[] = '/<\/param><embed/'; $patterns[] = '/allowscriptaccess="always"/'; $replacements[] = '</param><param name="wmode" value="transparent"></param><embed'; $replacements[] = 'wmode="transparent" allowscriptaccess="always"'; return preg_replace($patterns, $replacements, $oembvideo); return $oembvideo; } add_filter('embed_oembed_html', 'add_transparent'); ?>
in functions.php
FF: submenu over YouTube, perfect
Chrome: submenu over YouTube, perfect
IE : Throws a major hissy-fit and refuses to show the submenu at all.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Submenu over Youtube fix breaks IE’ is closed to new replies.