Jump to content

Mini embed audio player

Go to solution Solved by tuanphan,

Recommended Posts

Hi everyone, 

I'm trying to customize the embedded audio player. I need it to be very small (or even only the play button), like a pill to be very close to the text. It's only for some blog posts that I would need to be like this.

I don't need the title or any other information, only the play /pause button. I looked online but didn't find any information.

image.thumb.png.c0da1d90a99f56c458f3ab3a03ba3d30.png

Link to comment
  • Replies 7
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Don't remove any code in your current code. Add to Design > Custom CSS

body#item-640419acb82fe446f8e44e6a .sqs-audio-player {
    background-color: unset !important;
    box-shadow: unset !important;
    border: none !important;
}
.sqs-audio-player .controls {
    border: 1px solid black;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,.8);
}

image.png.f79e4ea3289f766a53b445bc65aa5a8d.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Hi Tuan. Thank you for being so helpful. It worked very well.

I have two questions:

- why can't I have all the players next to the text? Some are close, and some other very far.

- if I want to reuse this kind of player for other posts, can I just duplicate this post or do I need to update something in the code with the ID of the post?

Link to comment

#1. I don't know this

#2. Use this new code

.sqs-audio-player {
    background-color: unset !important;
    box-shadow: unset !important;
    border: none !important;
}
.sqs-audio-player .controls {
    border: 1px solid black;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,.8);
}

It will apply all pages

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/12/2023 at 1:20 AM, Chrystele said:

Hi Tuan, I'm sorry for the confusion. I want this kind of mini audio player only for SOME posts, not all.

You can edit the page where you want to apply > Add a Code Block (anywhere) > Paste this code

<style>
  .sqs-audio-player {
    background-color: unset !important;
    box-shadow: unset !important;
    border: none !important;
}
.sqs-audio-player .controls {
    border: 1px solid black;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,.8);
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.