Difficulty replacing embeded iframe video with custom script..
-
Newblar here, and I’m try to replace an iframe I have on my front page with a script to load the video contents only when clicked to decrease page load time. I’ve been following the example from this site (https://www.labnol.org/internet/light-youtube-embeds/27941/). My embeded video link: “https://www.youtube.com/embed/BeQl6qHVq8I”
This is the html I inserted into a text widget on my front page:
<div class=”youtube-container”>
<div class=”youtube-player” id=”BeQl6qHVq8I”></div>
</div>I copied and pasted the script and CSS onto my site into the appropriate areas, but the video does not load any image.
my site: (https://new.renaissanceeuropeanspa.com/)I’ve been playing around with this for a couple hours now and it’s driving me insane trying to figure it out. Can someone show me the light on this?
~thanks in advance ??
- The topic ‘Difficulty replacing embeded iframe video with custom script..’ is closed to new replies.