Jump to content

Custom Social icons and hover

Recommended Posts

Site URL: https://raccoon-oarfish-szer.squarespace.com/

I'm using the following code for custom social icons in the header:

.header-menu-actions-action:nth-of-type(2) {    
  svg {
  background-image: url(https:.....png);    
  background-size: 100%;    
  background-repeat: no-repeat;  

That all works fine, but I can't figure out how to create a hover style for the icons I've uploaded. I'm thinking I could upload a different color .png file for hover, but all my attempts at figuring out how/where to add a:hover anywhere does not work when attempting additional code. All my searches have found how to add the above snippet, but nothing about hover.

pwd: Largeosity

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Use some code like this for hover icon

.icon--fill:nth-of-type(3):hover {
    background-image: url(https://cdn.pixabay.com/photo/2022/06/13/19/43/man-7260571__480.jpg);


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.