Product page - Trade theme

Solved

Product page - Trade theme

Excelmotions
Tourist
10 0 2

Hello, 

I've added my product and they are video templates , I would like to auto-play them in my product page rather than having the user click on the play button. Is there any way to do that? Please guide. 

 

my product page link : https://www.excelmotions.com/products/sample-110

Accepted Solution (1)

Weblegs_Support
Shopify Partner
16 1 0

This is an accepted solution.

Hello

Follow the steps below
    1. Go to Online Store -> Theme -> Edit code.
    2. Open your product-thumbnail.liquid/theme.liquid file and add script.

    <script>
    document.addEventListener('DOMContentLoaded', function () {
    document.querySelector(".deferred-media__poster-button").click();
  });
</script>

image (45).png

After above changes, follow this below
   
1. Go to Online Store -> Theme ->Customize
Enable video looping
image (46).png

Let us know, if this solutions works for you

View solution in original post

Replies 2 (2)

Weblegs_Support
Shopify Partner
16 1 0

This is an accepted solution.

Hello

Follow the steps below
    1. Go to Online Store -> Theme -> Edit code.
    2. Open your product-thumbnail.liquid/theme.liquid file and add script.

    <script>
    document.addEventListener('DOMContentLoaded', function () {
    document.querySelector(".deferred-media__poster-button").click();
  });
</script>

image (45).png

After above changes, follow this below
   
1. Go to Online Store -> Theme ->Customize
Enable video looping
image (46).png

Let us know, if this solutions works for you

Excelmotions
Tourist
10 0 2

Thank you soo much , it worked And if i want to enable sound by default is it possible?