how to auto play a video on home screen

id like for the home screen to auto play the video without the consumer having to press play.

is this possible on dawn theme?

Hi Andia,
You can do it like this:


where does it go?

it has been added here.

Hi @Andia

You can try to add this code to your theme.liquid file, before to check


www.andiacollective.com.au

doesnt quite work. opens to a black screen vs the video

Updtade this on live 106 in video section

{{
            section.settings.video
            | video_tag:
              image_size: '1100x',
              autoplay: true,
              loop: section.settings.enable_video_looping,
              controls: true,
              muted: true
          }}

doesnt seem to work here

No, You need to go in themes codes, under sections you need to find video and under line 106 change code.

It doesn’t work on Chrome but it works on Firefox and Safari :disappointed_face:

oh amazing!! is there a way i can remove this

Hi @Andia ,

May I suggest to update code these steps:

  1. Go to Store Online-> theme → edit code

  1. sections/video.liquid

  2. Add code below to top of file


  

how can i remove this:

i also want to hide the controls on hover

To remove controls paste this instead:

{{
            section.settings.video
            | video_tag:
              image_size: '1100x',
              autoplay: true,
              loop: section.settings.enable_video_looping,
              controls: false,
              muted: true
          }}

Also to remove play button, on top of section on first line add this:


thank you!!

1 Like

where I need to put this code?

not working