How can I set a video as my featured product image to autoplay?

I would like to be able to upload videos as my featured image and have them autoplay on the main page like this: https://topshelfaquatics.com/product-category/newstock/inverts/livestock-fish/

When I upload an MP4 to the first position, all I get is a static image, but if I click into the product itself, it’ll play.

Hello, can you share your code and website?

Hello @jrp1588 ,

You can try to follow these steps:

Go to Online Store → Themes → Actions → Edit code

Go to Sections → product-card.liquid file

Replace the image code with an HTML5 video tag referencing the hosted video URL. Add the autoplay attribute to enable autoplaying like this:


Save changes

Hope this can help. Let us know if you need any further support.

Transcy

I’m not very comfortable with fiddling with the code. Is that just one global change, or will that need done for every item?