Liquid, JavaScript, themes, sales channels
Hi guys,
Video stopped working on our home page. I read the instructions of updating theme.js file (change return videos[evt.target.h.id]; with return videos[evt.target.a.id];) but it was already using the 2nd option. Any ideas why it happened? Our site is https://www.lubiliciouslube.com/ - any help is appreciated!
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi guys,
For anyone having the same issue, here is what worked for me. In theme.js file search for this code https://prnt.sc/rjjk9o (see https://pastebin.com/DinwsQjU) and replace it with this code - https://prnt.sc/rjjkyn (see https://pastebin.com/zGZJK4C2)
Hope this helps!
Hello @Anthony60,
Revert your changes in theme.js.
Because On your site now its showing JS error.
Hi,
Thanks for a fast reply. We've done no changes to theme.js file, that's why it's strange that it just stopped working by itself
Subscribing. My client is having the same issue with Debut, and has updated the "h." to "a." already.
Hi Bethany,
Any chance you have found a fix? Thanks!
Same problem here ringolock.com
Quite surprised there isn't a quick fix for something so basic as this ...
Im having the same problem. My youtube video on my website isn't working and I have the debut theme. My website is www.visionaryroseclothing.com
I will help you to fix this issue. Send me an email, details given below.
Thank you,
Tejas
Some fix, for the same but in phone view?
Hi - I am experiencing this issue even with the updated script. Can you please help? Thanks!
Hello, I'm having the same issue, however, I do not see that snippet in my theme.js file. Please help, Thank you.
I'm having the same issue since a few days. Both background and play button don't work.
Would be great if we can get help from someone to solve this issue.
I have contacted the theme support and they have fixed it. It supposed to be some update bug www.ringolock.com
Hi Bruny,
Did they happen to mention what was the fix they applied?
Thank you.
Just this: Our team has noted a theme bug on the Debut theme that is affecting the video section, due to the updated API on YouTube's end of things.
This is an accepted solution.
Hi guys,
For anyone having the same issue, here is what worked for me. In theme.js file search for this code https://prnt.sc/rjjk9o (see https://pastebin.com/DinwsQjU) and replace it with this code - https://prnt.sc/rjjkyn (see https://pastebin.com/zGZJK4C2)
Hope this helps!
Thanks man!
Its working perfectly.
Hey,
Having the same problem and tried every fix and still nothing. I cant even find this bit of code in my html?
Work perfectly, thanks!
Thankyou so much, worked perfectly
Thank you!! This worked perfectly for my store prayersplanner.com 🙂
Thank you!!! Works perfectly!
@Anthony60 wrote:Hi guys,
For anyone having the same issue, here is what worked for me. In theme.js file search for this code https://prnt.sc/rjjk9o (see https://pastebin.com/DinwsQjU) and replace it with this code - https://prnt.sc/rjjkyn (see https://pastebin.com/zGZJK4C2)
Hope this helps!
function getVideoOptions(evt) { return videos[evt.target.a.id]; }
function getVideoOptions(evt) { var id = evt.target.getIframe().id; return videos[id]; }
Cheers,
Tejas
Hi Tejas, I have correctly implemented your code, but unfortunately cannot get my video to load - still spinning round.
Grateful for any help, thanks!
Charlie
Greetings dear, your solution is great, I applied it to the theme and the video plays perfectly, but the video does not reproduce the sound, will it be some additional theme? Thanks in advance
@belleza It seems that the sound does not play when the video is set to "background" in the Theme Customize > Home Page > Videos section. Otherwise it's good.
That worked, thank you @Tejas_Nadpara!
Yasssss! it worked!
Thanks Tejas! Worked well for me. Much appreciated.
The debut theme version in my store already consists the following code -
@Tejas_Nadpara i think you can help
@bhagya19 Did, you fixed?
{
"name": "theme_info",
"theme_name": "Debut",
"theme_author": "Shopify",
"theme_version": "17.10.0",
"theme_documentation_url": "https:\/\/help.shopify.com\/manual\/using-themes\/themes-by-shopify\/debut",
"theme_support_url": "https:\/\/support.shopify.com\/"
},
Thanks. I just did this and it worked. 🙂
Thanks, Anthony60! This helped!
My site won't load the video link from youtube... here is my site, please help!
It seems like you missed the "}" closing bracket in theme.js file.
I sent you request for the Shopify collaborate account. Accept it so I can fix it from here.
Thank you,
Tejas
that's my present code. I dont have that upgrade to add you. Can you tell me what to do from here? This is the ONLY part of my store that doesn't function. I have never edited it to be messed up ut loaded that way from the theme.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024