Jump to content

How to add audio player to a code block

Recommended Posts

Hello, 

I am working on a website where I am trying to create a lightbox that opens when you click a link (an image) that will display a bunch of information about a certain music artist including images, text and some audio tracks. I have figured out how to create the lightbox and add text, images and add audio blocks but can't figure out how to get the audio blocks to play. When I press the play button nothing happens.  Any ideas on what I've not done?

Here's an example of the code I entered into the code block for the audio block: 

  <div 
  class="sqs-audio-embed"
  data-url="https://static1.squarespace.com/static/545402f7e4b06d59faa5eb07/t/5dbd66f1bcfc042fbcb4b3f2/1572693797459/Simon+Shackleton+-+Constellations.mp3/original/Simon+Shackleton+-+Constellations.mp3"
  data-mime-type=""
  data-title="Constellations"
  data-author="Simon Shackleton"
  data-show-download="false"
  data-design-style="minimal"
  data-duration-in-ms="428000"
  data-color-theme="dark"  
>
</div>

Thank you!

Chele

Link to comment
  • 3 months later...
  • Replies 2
  • Views 1.5k
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.