Jump to content

Change color and hover color on same size buttons on different bachgrounds

Recommended Posts

  • Replies 3
  • Views 223
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can target Button Block ID to change this

Add this to Design > Custom CSS

/* Homepage - First Section - Button */
div#block-0bdce237a97187584c82 {
a {
    background-color: white;
    color: blue;
}
a:hover {
    background-color: blue;
    color: white;
}}

Find button block id with this tool https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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
14 hours ago, EsterB said:

Thanks so much that totally worked. I would like button in the second navigation to do the same. Is that possible?

Also for buttons that are not on the homepage, does the code stay the same?

 

Homepage, just a comment, don't care it 😆

With secondary nav, use this

nav.Header-nav.Header-nav--secondary a {
    background-color: green !important;
    color: blue !important;
}

 

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.