Hi,
I am using the plak theme, i have MP3 music that i would like to autoplay once we land on my site, could you show me how to do it it please ?
Thanks in advance
Love is the flower you've got to let grow
Hi @jessy
Jasmine here from Plak theme support,
In order to autoplay a music/sound on your Shopify store, I invite you to follow these steps :
- From your Shopify Dashboard, Click Online Store > Themes > Actions > Edit code.
- In the Assets directory, click Add a new asset.
- Click Choose File, select your audio file, click Upload asset.
- In the Layout directory, click theme.liquid
- Find the </body> tag in the code, and paste this code above it:
<audio src="{{ 'filename.mp3' | asset_url }}" autoplay></audio>
- Click Save
Important :
- The theme must be live to let the music plays
- Be sure to replace 'filename.mp3' with your audio file's name and extension
Let me know if this worked and if you have any addition questions
Kind regards,
Jasmine
Jasmine | Plak theme support
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as a Solved Solution
It worked !!!!!!! thank you so much Jasmine
Love is the flower you've got to let grow
Welcome to the Shopify Forum Community provided by Plak ThemeLLC, a place where you can discuss about eCommerce and Shopify, solve technical issues, get help with Shopify Design, Apps integration, Marketing, Facebooks ad, Google ads and more.
Before posting, we invite you to read and follow the forum rules | We also support any questions related to Free Shopify themes :Dawn, Express, Minimal, Brooklyn, Narrative, Supply, Debut, Venture, Boundless and Simple