The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> YouTube Video Embed on Wordpress forcing Subtitles, Please check my code for error
karlip
post 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>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Aug 24 2018, 02:33 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,544
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd October 2018 - 01:38 PM