Better YouTube Embeds
[resolved] [Plugin: Embed YouTube] feature request? (2 posts)

  1. kato
    Posted 4 years ago #

    I need to add the window mode parameter to my YouTube URL to keep the YouTube window from covering a floated Navigation pane in Chrome.

    In other words, I need the iframe to look like this:

    [iframe src="http://www.youtube.com/embed/bFaEgDC9S_A?wmode=transparent" allowfullscreen][/iframe]

    Is it possibly to adjust your code to allow the parameters in my YouTube URL to pass through to your iFrame embed?

    I've tried messing with the code but my php skills aren't up to snuff yet. Thanks.


  2. Pat Hawks
    Plugin Author

    Posted 4 years ago #

    I have just updated the plugin to add wmode=transparent to all YouTube embeds, as I can't think of a single case where this would not be the desired behavior.

    As you could probably see when you were looking at the code, it isn't quite as simple as just passing a specific paramater to the embed code, as the embed code is 100% generated by YouTube. The only thing the plugin does is tell WordPress to ask YouTube for the iframe code instead of the Flash code.

    Now, when YouTube returns the iframe embed code, I have added a filter that tells WordPress to add wmode=transparent before it does anything else with the code (like cache it or display it).

    The updated version is now available to download.
    If you find this works for you, please consider rating my plugin, as I take a lot of pride in my work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better YouTube Embeds
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic