
-
AuthorPosts
-
April 14, 2014 at 3:43 pm #251129
Inserting an URL (like “http://www.youtube.com/watch?v=fYPBgGi180Q” ) into the video media element does not work.
I olnly see the the URL written on the page as “http://www.youtube.com/watch?v=fYPBgGi180Q”
Same goes for the Vimeo videos.
However, old pages which were build with the same video element work, at least for now.
April 14, 2014 at 3:49 pm #251139Hi Arda!
Do you mind posting a link to your website so we can take a look? Please make sure that you are using the latest version of the theme which is 2.6.2. If you are not, see – http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
YigitApril 14, 2014 at 4:02 pm #251158This is the page without problem:
http://www.hakandonmez.com/dr-hakan-donmez-kimdir/
This is the one with the problem:
http://www.hakandonmez.com/dis-teli-cesitleri-nelerdir/
I’ve just updated to 2.6.2. It did not help.
April 15, 2014 at 6:54 am #251447Hey!
Did you try if the video link works with the standard wordpress embed sgortcode ( http://codex.wordpress.org/Embeds )? Please create a textblock and insert the youtube link into it. Maybe you need to wrap it into the embed shortcode like:
[embed width="123" height="456"] http://www.youtube.com/watch?v=fYPBgGi180Q [/embed]
Regards,
PeterApril 15, 2014 at 11:15 am #251516Hey Dude,
[embed] gives same results. I only see the the URL written on the page as “http://www.youtube.com/watch?v=fYPBgGi180Q”
For now the only solution is to embed <iframe> code copied from the YouTube. However, videos loose fluid layout. Height and width do not adjust responsively which is bad.
Do you have any idea how this issue began? This started a couple of days ago.
April 16, 2014 at 8:57 am #251978Hi!
Maybe the server provider changed the configuration of the server somehow and the oembed protocol doesn’t work properly. The embed shortcode basically sends a request to youtube (= the server requests data from youtube) which returns the right iframe code. WordPress then replaces the youtube link and the embed shortcode with the corresponding iframe code. If the oembed request fails (i.e. because the server won’t connect to youtube) then WP can’t embed the right iframe code but it will just show the link (as fallback) instead.
Regards,
PeterApril 16, 2014 at 11:34 am #252025Hi Peter,
The interesting thing is that some pages do not have any problem (like http://www.hakandonmez.com/seffaf-dis-teli/).
However, newly created pages, like http://www.hakandonmez.com/video-test/, have this issue. It looks like this is not server related.
Those two example pages use the same method of embedding YouTube video, via video media element.
The best hack is to use this HTML code in a text block:
<div class=”avia-video avia-video-16-9 ” itemprop=”video” itemtype=”http://schema.org/VideoObject”><div class=”avia-iframe-wrap”><iframe width=”1333″ height=”1000″ src=”http://www.youtube.com/embed/cJ4YDRTwNrY?feature=oembed&wmode=opaque” frameborder=”0″ allowfullscreen=””></iframe></div></div>
Obviously one of the Enfold scripts cannot generate the above code and fallbacks to show the link.
Maybe you can tell me the related script and I might try to debug that part.
Thanks.
April 17, 2014 at 11:42 am #252607Hey!
The theme uses WordPress’s own embed script which is the oEmbed Peter mentioned above. What could be happening is that on older pages the code was already generated correctly but on newer ones WordPress is failing at doing so.
You can test it by switching themes and see if regular embeds work.
Cheers!
Devin -
AuthorPosts
- You must be logged in to reply to this topic.