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 {
    display:none;    
  }    
  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
  • Views 239
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.