go41

Re: add_filter to embed_oembed_html to get wmode transparent :: Reply by master

von Joern am 21. Aug. 2010 | Keine Kommentare

Using WordPress 3.0.1 I just copied the source code of FireFox. For an embeded video the code looks like this with the function above in functions.php

<object width="450" height="363">
<param name="movie" value="http://www.youtube.com/v/wLph9-ZkMX8&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/wLph9-ZkMX8&fs=1" type="application/x-shockwave-flash" width="450" height="363" wmode="transparent" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
removed the function it comes out like this

<object width="450" height="363">
<param name="movie" value="http://www.youtube.com/v/wLph9-ZkMX8&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/wLph9-ZkMX8&fs=1" type="application/x-shockwave-flash" width="450" height="363" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
See the difference in source code?
On screen you will not see any difference except the movie covered an unfolding menu and stayed above items it should not cover.
This video above is just a plain URL link to a YouTube Video in a post, sample:

go to http://themes.go41.de/?wptheme=Barthami_Corporate first to get a theme with this function enabled and than open this post: http://themes.go41.de/2009/12/22/wordpr … rl-videos/
____________________
you find me on Google+, Twitter and Facebook

(von: master)

Hier noch 3 weitere Ergebnisse dieses Threads:

add_filter to embed_oembed_html to get wmode transparent

24. Dez. 2009 (von: master)

The video embedded by WordPress 2.9 hasn't the parameters <param name='wmode' value='transparent' /> and <embed wmode="transparent" ... >.This makes it stay above a dropdown menu and any other elements on thepage. Yes, it is possible to modify the code returned…

Re: add_filter to embed_oembed_html to get wmode transparent :: Reply by s0206

21. Aug. 2010 (von: s0206)

Hi thereI tried adding this to my functions file but it made no difference whatsoever. I am using wordpress 3.0.Any idea's on how to get it working?Thanks in advance Weiterlesen →

Re: add_filter to embed_oembed_html to get wmode transparent :: Reply by s0206

21. Aug. 2010 (von: s0206)

Thank you very much!I was embedding the code form youtube rather than just using a plain url. This works great.Thanks once again! Weiterlesen →

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: