Why can't I link an autoplaying YouTube video in Dawn theme?

Topic summary

Issue: The Dawn theme’s video section won’t accept a YouTube link that autoplays/loops. The user can upload an MP4 to Shopify, but it doesn’t autoplay.

Proposed solutions:

  • Use the HTML5 video tag with the autoplay attribute (and loop). An example resource was shared.
  • If adding these attributes doesn’t work in the theme’s native section, insert custom code tailored to the theme files.

Details/terms:

  • “autoplay” starts the video automatically.
  • “loop” restarts the video after it ends.

Latest update: The original poster asked where exactly to add the code and what it should look like. No specific file path or code snippet was provided yet.

Status: Unresolved. Next steps require guidance on which Dawn theme file/section to edit and a concrete code example to implement autoplay + loop (either for an embedded MP4 or a YouTube embed).

Summarized with AI on January 11. AI used: gpt-5.

Hello! I would like to link an autoplaying YouTube video on a loop. The Shopify Dawn Theme’s video section is not accepting it: https://youtu.be/TxvZ2IumBGQ?si=HLFLmLJTxwiKl_W7

Note: I am able to link the video as an mp4 uploaded to Shopify but cannot get it to autoplay. If I could get it to autoplay, this could work as an alternative.

@sweetneptune - did you use autoplay attribute of video tag?

Hello @sweetneptune :waving_hand:

You can use the autoplay attribute. An example here

https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_video_autoplay

Hi @sweetneptune You need to add the autoplay and loop attribute in your video, if this code is not working then you need to add the custom code so that it will work for your theme, according to your theme files.

If you will unable to implement the same then I’m happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!

Best Regards

Sahil

Hi! Where would I add the code? And what would it look like?