Why isn't the video loading on my Debut Theme homepage?

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]:wink: 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!

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 …

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.

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!

9 Likes

Excellent work! Now mine works as well on caterking.se . Thank you!

1 Like

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?

1 Like

Work perfectly, thanks!

Thankyou so much, worked perfectly

Thank you!! This worked perfectly for my store prayersplanner.com :slight_smile:

Thank you!!! Works perfectly!

  • Please click Online Store and then Themes.
  • Next, click on Actions and select Edit Code.
  • After that, select the Assets file and click theme.js.
  • Search the function name “getVideoOptions”, it would be like the following:
  function getVideoOptions(evt) {
    return videos[evt.target.a.id];
  }

  • Replace that function with the following code:
  function getVideoOptions(evt) {
    var id = evt.target.getIframe().id;
    return videos[id];
  }

  • Save the changes and reload your site.

Cheers,

Tejas

4 Likes