Hi. As you may already know. Video is the most powerful media on the web right now. Google and other search engines crawl websites and pages with videos, more often than those who don’t have them.
As such. I wanted to add some videos to my site. I did this by using the YouTube embed code from within the share menu options on my chosen YouTube videos.
I then realized YouTube embed was pretty heavy and slowed down the pages considerably. In fact, the videos would load after 10+ seconds everything else had loaded. I tried to look for a better way to do this and found this tutorial: https://www.labnol.org/internet/light-youtube-embeds/27941/
I tried to follow the tutorial by doing two things. Adding the script portion using the google tag manager custom HTML option. And then adding the CSS portion under WordPress additional CSS option.
After replacing a couple of the videos with: <div class="youtube-player" data-id="VIDEO_ID"></div>
AND
Inserting the correct VIDEO_ID which is the string after = on Youtube videos. I realized this procedure did not work.
I contacted BrainStormForce about this. They build astra templates. Including the one I used. Maybe they are able to give me some instructions I can follow to make this work.
One of the issues I’m trying to resolve. The code I added using tag manager is embedded at the bottom of all pages: http://prntscr.com/py8nrq
My understanding was that if I deleted or paused a tag. The code would essentially go away because it had not been triggered. This did not work this way though.
I also tried the backup settings within siteground with the aim to restore the website to an earlier version but this did not work either.
Has anyone had this happen to the? How did you fix it?
Appreciate your help.
-Rey
PS: If you want to see how this looks live go to https://www.reyrrodriguez.com/ and scroll all the way to the bottom.