Liquid, JavaScript, themes, sales channels
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, how do I DM you? Is this a private message?
Mike
Hi Visley, Can you please help me? I need to go live with the site October 1st at noon. HELP!!! PLEASE!
Mike
@mikeevans1800 sorry, had a look and it's hard to identify the issue due to the changes you or your team applied trying to fix the original issue. Is there a way you can rollback the changes you applied to the theme.js?
So I just tried to do that, but it only lets me go back to the last save, not previous ones. I changed it a few times trying different stuff, and i am not a programmer so i probably screwed it up. It wont let me change it back to a few days ago. Any other thoughts?
Hey bud, i got it. I started a new shopify page and copied the original code and entered it into my messed up one. Its working now.
Thanks!
Hi Visely team , are you able to help me out? I tired your fix and it is not working
I have sat here for a hour, no lie. I am trying to insert a "snippet" ..video from aliexpress to my store. Now I downloaded it and i put it in the little slots where photos go and it shows up for me but when i view my store it doesnt show up. Now I tried inserting it with iframe and NOTHING is working for me. This will be a AWESOME help for my store to actually generate revenue. Please help me my store is www.Evesbucket
<iframe id="localstorage-proxy-ifr-alibabadotcom2" src="//is.alicdn.com/js/6v/biz/common/store-proxy/store-proxy2.html?iframe_delete=true" style="display: none; visibility: hidden;" data-spm-anchor-id="a2g0o.detail.0.i6.24be70faC5WqS7" data-spm-act-id="a2g0o.detail.0.i6.24be70faC5WqS7"></iframe>
I do not know if i should copy element...i have no clue as i am soo new. Please help if possible as this will be very useful with all of my products
phone number 386 307 9737 florida united states.. email thelogust@gmail.com or feel free to go into my store and upload a video on ANY product ....thank you
My video Theme.js has the same code you recommand, but my video still not working, what should I do ?
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
I have checked the code- and it is correct - but the videos are still not loading (they did load previously?)
can you help?
I'm going to hop on here, I'm going with a vimeo video that's password protected. When I put in the password, instead of showing the video it shows "this event has no videos." However when I refresh the page, the event shows up as desired.
Same thing works fine on a squarespace page. My code natively has "a" so I tried the fix replacing the "a" with an "l" but to no effect.
I'd love some help.
@EmileSthe issues you are seeing are not related to the issue reported under this thread. You might want to create a new post.
Visely I was following all the answers from everyone I did all of them none of them work can you still help? Qdeals4U.com
Thank you
@Qdeals looks like you've got it sorted? The video on homepage loads for me with no issues.
I am having an issue where a new video will not load and a previous video that used to work also will not load. I have checked the code in the theme.js and verified it to be consistent with the fix you mentioned previously. Is there anything else you can recommend I try?
Thank you!
@CVGS 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.f.id]; }
You are fantastic, this fixed my issue! Thank you for your help!
This worked for me thanks!
@Visely-Team wrote:@CVGS 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.f.id]; }
My video isn't loading, I can't find the code previously mentioned in this thread. My website is mobb-goodies.myshopify.com. Any assistance you can offer is greatly appreciated.
Thank you,
Robin and Talitha
@Mikenike315 which video isn't loading for you? It looks OK to me on the homepage, there is one video under "WATCH OUR LATEST VIDEO". Were you referring to another page/video? Also there are no errors in the logs specific to the issue.
Did you see the section to which I was referring?
@mobbgoodies yes I see it now; you have to adjust the following snippet in your theme.js.liquid:
function getVideoOptions(evt) { return videos[evt.target.a.id]; }
so it reads:
function getVideoOptions(evt) { return videos[evt.target.f.id]; }
A more universal solution would be to replace the whole block:
function getVideoOptions(evt) { return videos[evt.target.a.id]; }
with this block here:
function getVideoOptions(evt) { var id = evt.target.getIframe().id; return videos[id]; }
Hi, Please could you help. My video on the homepage isn't loading. I have tried all the fixes and the universal one.
URL is https://chalk2thehand.co.uk/
Thank you!
Hi I've tried all the aforementioned fixes to get my video to work. I'm trying to embed a youtube video onto each of my product detail pages.
Store URL: the-everplush-company.myshopify.com
can you help?
@coreyK can you share the URL to a product page with the video failing to load?
@coreyK the Youtube URLs are not links to actual videos, so they wont work if you try use them as src for the <video> tag. Replace <video> tag with the following snippet and you should be good:
<iframe width="1280" height="720" src="https://www.youtube.com/embed/JphMrAC5l2A" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Hello Can you help me also. I've change the a. to l. but not working.
This is my url. https://d-tops-engineering-supply.myshopify.com/
My video is not working.
Hi there,
I have been reading in this feed to look for a solution for the video on my home page not loading. I would like to upload it as a background video. Let me know if you know what I should do!
Here's the shop:
Thank you!!!
@NikkiSedacca this thread is specific to errors merchants are seeing with their previously working videos and solutions on how to get the functionality back. Please create a different post if you are looking for help on implementing this.
Hello,
I have same issues with youtube video not playing.
I checked your advice and the coding is correct.
Can you please help me to unblock my youtube video?
Thank you.
flynovabe.myshopify.com
Kind regards,
J.B.
G.G. edit worked thank you amazing good help
I just sent you a request to look at mine and saw that someone use "g.g." in replace of "a"... it worked. I am good. Thank you
I am having the same issue and cannot find where to make that edit. Is someone able to help?
Hi, I am having the same issue on my homepage, but I can't seem to find the liquid file of where I should put the code.
Would you mind having a look? https://www.zetuke.com/
Hi!
My video is doing the same thing please let me know how I can fix it!
My store URL www.fancyfarmskincare.com
Please let me know what I can do to make the video load better!
Thank you
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