I’m trying to insert this video into the homepage of the debut theme.The video is forever loading and the play button doesn’t work. How can I fix this?
https://www.youtube.com/watch?v=p7DjwxFcUdA
Heres the link to my store:
I’m trying to insert this video into the homepage of the debut theme.The video is forever loading and the play button doesn’t work. How can I fix this?
https://www.youtube.com/watch?v=p7DjwxFcUdA
Heres the link to my store:
Hey there,
The reasons is a javascript error that happens during video loading. Make a copy of your currently live theme, locate your theme.js.liquid file and find a snippet similar to this one:
function getVideoOptions(evt) {
return videos[evt.target.h.id];
}
adjust it to read:
function getVideoOptions(evt) {
return videos[evt.target.a.id];
}
notice the exchange of .h. with .a.
This fix isn’t working, I am unable to save the file after making the change. See attached. Any thoughts?
This worked like a charm! Thank you so much!
I’m having the same problem.
I checked theme.js, but it already has
return videos[evt.target.a.id];
Any idea on how to fix this?
I check the js file and cant even find
return videos[evt.target.a.id];
Video not loading up for me
@Ababusa @digitalmirrors share your store’s URL so I can take a look, it might not be related.
I’m terribly sorry, I should have returned once I figured out my fix, kind of simple and actually embarrassed I didn’t pick up on it
For anyone else having this issue please do firstly check the video you’re using is at least accessible by using a shareable link
Rookie mistake I know
My video Theme.js has the same code you recommand, but my video still not working, what should I do ?
Can you take a look at mine too ?
@Agail please share a preview URL.
My code has the same: “return videos[evt.target.a.id];”
Would you be able to fix mine as well? My store url is www.exlnce.store
@Agail in your theme.js find the following snippet:
function getVideoOptions(evt) {
return videos[evt.target.a.id];
}
and adjust it to read:
function getVideoOptions(evt) {
return videos[evt.target.l.id];
}
Thank you very much, works like a charm now
I have checked the code- and it is correct - but the videos are still not loading (they did load previously?)
can you help?
@mariekedegoeij what’s your preview URL?
It works now! Thanks!