Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ YouTube Video Embed on Wordpress forcing Subtitles

Posted by: karlip Aug 23 2018, 10:46 AM

I am trying to embed some YouTube videos on my website and want to force showing the subtitles. I read about how to do it and now it works but the editor says that there is a mistake "Named entity expected. Got none." It works without mistakes on the website but maybe someone knows how to correct it.

If I place the cc_load_policy=1 right behind the URL as described in most blogs then it does not do what I want which is not showing alternative videos once the video ends or is paused.

thanks for your help!

<div style="text-align: center;">

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/4cmhow4aPv8?rel=0&cc_load_policy=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

</div>

Posted by: CharlesEF Aug 24 2018, 02:33 AM

Well, the iframe attributes 'allow' and 'allowfullscreen' are not valid, remove them. Also, the attribute 'frameborder' isn't valid in HTML5.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)