What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Autoplay video product page "media part" - Dawn Theme

Autoplay video product page "media part" - Dawn Theme

Paul_Steenbrugg
New Member
16 0 0

Dear community,

I am dealing with an issue that I think is easier to solve than I might think.

 

On the product page, moreover, at the product images, I added a video that should autoplay when visiting the webpage. However, at the moment the video shows the button with play, which I don't like.

 

Would be great if anyone could help me out.

Replies 4 (4)

Paul_Steenbrugg
New Member
16 0 0

NomtechSolution
Astronaut
1245 113 154

To autoplay the video on the product page without displaying the play button, you can use the HTML5 video tag with specific attributes. Here's an example of how you can achieve this:

  1. Locate the section of code that includes the video element on the product page. This code is typically found in the product template file, such as product.liquid or product-template.liquid. Open the relevant file in your theme editor.

  2. Find the video element code: Look for the <video> tag that represents the video element. It might look something like this:

 

<video src="your_video_source_url.mp4" controls></video>

 

Paul_Steenbrugg
New Member
16 0 0

Hello NomTech,

 

Thank you for your reply. How is this a solution? Should I copy/paste your code to the bottom of the page (product.liquid or product-template.liquid)?

kesmon
Tourist
12 0 2

Hey Paul,

 

Heb je dit nog kunnen fixen?