autoplay and loop homepage video (debut theme)

How to autoplay and loop homepage video?

URL: https://beauty-and-the-board.myshopify.com/

PW: geifra

1 Like

@JhordanMSUITE

https://codepen.io/adrianparr/pen/QxMvdj

Hi @JhordanMSUITE , in the iFrame tag where you’re adding the link to the vimeo video add autoplay=1 and loop=1 parameter.

So the link will be link this:

<iframe src="//player.vimeo.com/video/561497612?byline=0&portrait=0&badge=0&autoplay=1&loop=1" width="850" height="480" frameborder="0" allowfullscreen="" autoplay="1&loop=1"></iframe>

where should I paste this link? Right now my vimeo link is in the custom content video section

@JhordanMSUITE can you post a screenshot of how the custom content video section looks like?

@JhordanMSUITE , append this to the vimeo link: ?autoplay=1&loop=1

So the video link you should enter into the textfield is this:

https://vimeo.com/561497612?autoplay=1&loop=1

That didn’t work, still showing the play button

If that didn’t work, you will have to do via code.

Hello @JhordanMSUITE

You can add code &autoplay=1&loop=1&autopause=0 in custom-content section.

Hello,

I see that your video is autoplaying on mobile as well.

Did you have to change the code for that?

Is it also possible for a video from YouTube.

Thanks!

1 Like

@Estendia

do you mean like this?

https://codepen.io/adrianparr/pen/QxMvdj

1 Like

Dear Experts,

I’m using the Debut theme but can’t seem to locate the “custom-content.liquid” file for the autoplay and loop functionality for my Youtube video. Is it possible that the file can be under af different name? I have tons of other .liquid pages?

Hoping to hear from you guys