Solved

Debut Theme - Video not loading

Anthony60
Tourist
6 1 9

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!

Accepted Solution (1)
Anthony60
Tourist
6 1 9

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!

View solution in original post

Replies 38 (38)

oscprofessional
Shopify Partner
15830 2369 3072

Hello @Anthony60,

Revert your changes in theme.js.

Because On your site now its showing JS error.

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
Anthony60
Tourist
6 1 9

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

Bethany_Elevatr
Tourist
3 0 2

Subscribing. My client is having the same issue with Debut, and has updated the "h." to "a." already. 

Anthony60
Tourist
6 1 9

Hi Bethany,

 

Any chance you have found a fix? Thanks!

Bruny
New Member
6 0 0

Same problem here ringolock.com

Anthony60
Tourist
6 1 9

Quite surprised there isn't a quick fix for something so basic as this ... 

VisionaryRose
Visitor
1 0 0

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 

Tejas_Nadpara
Shopify Partner
1118 222 552

@VisionaryRose 

 

I will help you to fix this issue. Send me an email, details given below.

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on tejas.nadpara@gmail.com regarding any help
Búho
Visitor
1 0 0

Some fix, for the same but in phone view? 

ellylla
New Member
4 0 0

Hi - I am experiencing this issue even with the updated script. Can you please help? Thanks!

symplybyhelena
Visitor
1 0 0

Hello, I'm having the same issue, however, I do not see that snippet in my theme.js file. Please help, Thank you.

Screen Shot 2022-12-15 at 7.48.23 AM.png

Wouteraid
Visitor
1 0 0

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.

Bruny
New Member
6 0 0

I have contacted the theme support and they have fixed it. It supposed to be some update bug www.ringolock.com

Anthony60
Tourist
6 1 9

Hi Bruny,

 

Did they happen to mention what was the fix they applied?

Thank you.

Bruny
New Member
6 0 0

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.

Anthony60
Tourist
6 1 9

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!

Caterking
Tourist
11 0 1

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

Chandra_Prakash
Shopify Partner
1 0 0

Thanks man!

Its working perfectly.

Brealey
Visitor
2 0 1

Hey,

 

Having the same problem and tried every fix and still nothing. I cant even find this bit of code in my html?

DabsDesign
Shopify Partner
43 1 10

Work perfectly, thanks!

DABS Design - Sua Agência Shopify no Brasil. Somos especialistas em Shopify e Shopify Plus, oferecendo consultoria, suporte, criação, integração de Apps e desenvolvimento para sua loja virtual. Conte com uma agência Shopify Expert Partner para potencializar o seu negócio! Entre em contato conosco. Transforme sua loja com os especialistas em Shopify no Brasil!
AlexS
Tourist
7 0 0

Thankyou so much, worked perfectly

prayingmonie
Visitor
2 0 1

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

Xavasa
Visitor
1 0 0

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!


 

Tejas_Nadpara
Shopify Partner
1118 222 552
  • 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];
  }

Debut Theme - Video not loading.png

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

Debut Theme - Video not loading-1.png

  • Save the changes and reload your site. 

 

Cheers,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on tejas.nadpara@gmail.com regarding any help
CharlieBabble
Visitor
3 0 0

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

 Screenshot 2020-05-25 at 11.55.57.png

 

https://www.babbleandhemp.com 

belleza
Visitor
3 0 0

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

kailasachse
Shopify Partner
85 0 32

@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.

Working with small businesses to establish branding, online presence, and strategy for marketing and operations.
kailasachse
Shopify Partner
85 0 32

That worked, thank you @Tejas_Nadpara!

Working with small businesses to establish branding, online presence, and strategy for marketing and operations.
Jelani2
Visitor
2 0 0

Yasssss! it worked! 

brettcasson
Tourist
6 0 4

Thanks Tejas!   Worked well for me.  Much appreciated.

bhagya19
Tourist
11 0 8

The debut theme version in my store already consists the following code - 

function getVideoOptions(evt) {
    var id = evt.target.getIframe().id;
    return videos[id];
  }
 
In spite of that, the video player doesn't work. Please suggest.
AvidBrio
Shopify Expert
295 17 29


@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\/"
  },

 

If you find our comment helpful, hit the like button and accept it as a solution.
Want us to implement custom changes in your store? Contact us
Email me directly - jim@avidbrio.com
JenGreenThumb
New Member
5 0 0

Thanks. I just did this and it worked. 🙂 

LavenderLove
Visitor
1 0 0

Thanks, Anthony60! This helped!

BtEtheridge
Visitor
3 0 0

my site is not loading this video... why?

 

here is my site...

https://olcountrybastard.myshopify.com/

BtEtheridge
Visitor
3 0 0

My site won't load the video link from youtube...  here is my site, please help! 

https://olcountrybastard.myshopify.com/

Tejas_Nadpara
Shopify Partner
1118 222 552

@BtEtheridge 

 

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

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on tejas.nadpara@gmail.com regarding any help
BtEtheridge
Visitor
3 0 0

Screenshot_20200818-040217_Shopify.jpg

 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.