If your dropdown menu is being obscured by a YouTube video you will need to add some extra code to make the video drop behind the menu.
Once you embed the video on your page, edit the source. Here is an example with the code to add in RED:
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ width=”425″ height=”344″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”allowFullScreen” value=”true” /><param name=”allowscriptaccess” value=”always” /><param name=”wmode” value=”transparent” /><param name=”src” value=http://www.youtube.com/v/3MNVPA69ZnQ&hl=en&fs=1 /><param name=”allowfullscreen” value=”true” /><embed type=”application/x-shockwave-flash” width=”425″ height=”344″ src=http://www.youtube.com/v/3MNVPA69ZnQ&hl=en&fs=1 allowfullscreen=”true” allowscriptaccess=”always” wmode=”transparent”></embed></object>
Hey, this used to work for me, but now it quit working, prolly cuz I started using custom fields to put in YouTube video. My more pressing question is: How would I automate this code in a custom WordPress theme?
@Tiago – Can you use a Plugin? There are alot of YouTube plugins available. If you’re running WP 3.0 you may have to install a couple and test before you find one that works…I tried two and neither one worked the way they were supposed to. It’s likely they won’t have the code listed above though, so you may have to edit the Plugin and add it in by hand. This may or may not work. You could also try contacting a Plugin creator and get them to add the code as an option…assuming the plugin is under development still (alot are not). Good luck!
@Tiago – Just saw your website…WP3.0 with a Custom Theme. Is the theme using a plugin for the videos, or in the theme itself? Judging from the source code, it’s the theme itself..
If you wish to avoid editing the theme directly (recommended), you can try using a Child Theme: http://codex.wordpress.org/Child_Themes
Sadly, there are no Child Plugins 🙂