YouTube Video Embed on Wordpress forcing Subtitles, Please check my code for error |
YouTube Video Embed on Wordpress forcing Subtitles, Please check my code for error |
karlip |
Aug 23 2018, 10:46 AM
Post
#1
|
Group: Members Posts: 1 Joined: 23-August 18 Member No.: 26,699 |
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> |
CharlesEF |
Aug 24 2018, 02:33 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Well, the iframe attributes 'allow' and 'allowfullscreen' are not valid, remove them. Also, the attribute 'frameborder' isn't valid in HTML5.
|
Lo-Fi Version | Time is now: 25th April 2024 - 10:24 PM |