Can I add a back button and autoplay video on my product page?

Hi there!

I would like to ask that is there any chance to put a back button to the collection or the product page? I want if it would be easy to go back to another product or collection. Because there is no such back button in the original setting.

And I need help making the simple video ( which is linked from the youtube) on the main page to set it to play automatically. I cannot find how to make this to autoplay.

I really appreciate the help.

Hi @hodiniki

For you back button, you can use the following: History back() Method (w3schools.com) and then add it on top of your ‘product.liquid’ template file.

For the video to play automatically, you would need to identify the YouTube embed link and add the autoplay feature on it. That doesn’t guarantee it will work on pages though so keep that in mind.

Should you require further assistance we’ll be happy to help!

This is a big help, thank you. But can you help me with the design too. That I want nicer back button, but unfortunately I cannot do this coding thing.

Hi @hodiniki

Where do you want to put this exactly? Can you share your store’s URL here or privately so we can request access and adjust this?

https://corspet.com/

This is the link of my website. Now the button you sent in the previous reply is placed. I want to put it at the bottom of the page and in a slightly more design form. You can find the back button if you go to the product page.