Jump to content

Audio in header

Recommended Posts

Hi! I have succsessfully managed - with wonderful help from the Forum (thanks!) - to add audio to the top right corner of my header. But I would like to change the play/pause buttons I now have, to more audio spesific icons like theese:

https://fontawesome.com/icons/volume-off?s=solid&f=classic

https://fontawesome.com/icons/volume-high?s=solid&f=classic

How can this be achieved?

 

Site: https://dahlia-chameleon-xdem.squarespace.com

Pass: sketchingsound

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Ah, sorry. I was trying to fix it myself and therefore had messed up the code. Now I have inserted the original code I got from the forum (in advanced/code injection/footer) and the play/pause buttons are back.

I have learned that I need a newer version of Font awesome to make my desired icons work. I have registered as a Font awesome user, and on my account it says version 6. Below are my kit codes, cc from my account.

<script src="https://kit.fontawesome.com/a0d43cfa57.js" crossorigin="anonymous"></script>

<link rel="stylesheet" href="https://kit.fontawesome.com/a0d43cfa57.css" crossorigin="anonymous">

 

How to put it all together to get the icons I want?

Thanks!

Link to comment

Don't remove any code in your current code. Add this to Code Injection > Footer

<style>
  a.fa.fa-play:before {
    content: "\f026" !important;
}
  a.fa.fa-pause:before {
    content: "\f028";
}
</style>
  

image.png.9c3571f59416e1a8f1d1ca28b4a7a284.png

image.png.fb5f5cd0bad5c1ee4515eec82dcf0431.png

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 2/11/2023 at 10:23 PM, sihole said:

Thanks a lot! This worked 🙂

Is it possible to change the size of the icons? I would like them to be a bit larger if possible.

Use this

<style>
  a.fa.fa-play:before {
    content: "\f026" !important;
    font-size: 30px !important;
}
  a.fa.fa-pause:before {
    content: "\f028";
    font-size: 30px !important;
}
</style>

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.