WordPress.org

Ready to get started?Download WordPress

Forums

Add wmode transparent to flash videos (7 posts)

  1. aldolat
    Member
    Posted 4 years ago #

    Hi all!

    WP 2.9 oEmbed feature should add these parameters

    <param name="wmode" value="transparent">

    and

    wmode="transparent"

    in the embed tag to avoid that the video appears above other elements, such as menus.

    These parameters are already present in the press-this.php file, but not if I paste a flash video url (like youtube) in my text area in the writing panel.

    Please, fix this. :-)
    Thank you.

    Aldo

  2. Chandra M
    Member
    Posted 4 years ago #

    +1... Please fix this.

  3. hodgeman
    Member
    Posted 4 years ago #

    Third that, is there a way to specify it in a embed shortcode tag?

    [embed wmode="transparent"]YOUTUBE_URL[/embed] doesn't work

  4. aldolat
    Member
    Posted 4 years ago #

    @hodgeman
    I prepared a post, specific for WordPress and YouTube: it's in Italian, but at this link you can read it in English via the automated translation by Google.

    Remember that the code in the page automatically translated has some errors after being processed by Google: get the code from the Italian original page.

    Using the code explained in that post you'll obtain, in addition, a page valid for W3C.

  5. Chris Reynolds
    Member
    Posted 4 years ago #

    um...fourth this...
    If it's already in Press This, it seems a bit ridiculous that it's not in the normal oEmbed...

    edit: actually, nevermind. just looked at Trac and this was taken off the roadmap: http://core.trac.wordpress.org/ticket/11436

    However, there's a solution here: http://forum.go41.de/topic/add_filter-to-embed_oembed_html-to-get-wmode-transparent

    You can replace "transparent" in that code with "opaque" which is presumably better and less resource-intensive.

  6. Crantea
    Member
    Posted 3 years ago #

    I've created a short 7-lines filter doing just that (shorter and easier to understand imho):
    http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html

  7. RavanH
    Member
    Posted 3 years ago #

    +1 for this issue while it's still current in WP3.0.1 :(

    I suppose WP leaves it up to Youtube and the like to return embed code with wmode without considering the consequences for some if they don't?

    @Crantea, you ROCK ! Thanks for sharing that work-around...

    One suggestion: would it not be better to use wmode "opaque" instead of "transparent" ? It's less memory intensive and none of these video websites produce movies that use/need transparency anyway :)

Topic Closed

This topic has been closed to new replies.

About this Topic