Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hi. We are brand new to Shopify and don't have any experience with writing code at all. I added a YouTube video to my home page 2 days ago and it worked fine. Now, the play button is spinning and the video won't play. Any ideas as to why? Thanks!
If you are using the Debut theme, it is a known issue. Contact Shopify support and they will help you out. I just did and they fixed it for me.
Any idea what they did to make it work. They said they couldn't help me because im in the partner program
No sorry, I asked but they could only fix it for me. It was something to do with the YouTube API. It is a known issue.
Thank you. I am having difficulty even contacting Shopify support. When I click on the 24/7 support, nothing happens. Any suggestions?
They showed me what they did. Hope it helps!
In theme.js
Add:
function getVideoOptions(evt) { var $target = evt.target.a ? evt.target.a : evt.target.f; return videos[$target.id]; }
Remove (or comment out using "//"):
function getVideoOptions(evt) { return videos[evt.target.a.id]; }
You are saint! This worked perfectly thanks for your help
Hi, my video used to play fine, but all over sudden stopped (not loading). I tried finding theme.js to implement your suggestion, but can't find it. Can you please let me know how to find theme.js
Thanks!
Worked for me thanks, it was hidden around line 2245 in the "theme.js" file (under "assets"). The first time it didn't save but I did it again, hit save and it worked!
Thank you! That worked for me as well.
@danstoj wrote:They showed me what they did. Hope it helps!
In theme.js
Add:
function getVideoOptions(evt) { var $target = evt.target.a ? evt.target.a : evt.target.f; return videos[$target.id]; }Remove (or comment out using "//"):
function getVideoOptions(evt) { return videos[evt.target.a.id]; }
WOW you are a star... I've lost two nights of sleep trying to fix this issue (no previous any sort of experience, contacted shopify but no reply). This simple thing fixed it. Thank you
This helped out a lot and my video works perfect ! thanks heaps for this !
Can someone do a video showing this process.... Thank you
I requested a callback from Shopify and they were able to transfer my store over to the Debut.2 theme. The issue was fixed and I assume this will allow me to add future videos without editing the code.
Hi! I'm having the same problem, can anyone help me please?
I replaced the code but still the video won’t play? Any idea why?
User | RANK |
---|---|
205 | |
105 | |
88 | |
56 | |
45 |