Jump to content

Hover button

Recommended Posts

Hello,

Need assistance finishing out the below hover button code. I would like for the button to stay 100% black when it's not being hovered and 100% black when it is being hovered. The only hover effect is for a white border to go around the perimeter. Text of the button should be white.

 

/* add to cart button color */

.sqs-product-quick-view-content .sqs-add-to-cart-button {background-color: #000000!important}

Link to comment
  • Replies 4
  • Views 433
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

3 minutes ago, madseason said:

Hello,

Need assistance finishing out the below hover button code. I would like for the button to stay 100% black when it's not being hovered and 100% black when it is being hovered. The only hover effect is for a white border to go around the perimeter. Text of the button should be white.

 

/* add to cart button color */

.sqs-product-quick-view-content .sqs-add-to-cart-button {background-color: #000000!important}

Can you share your site with the protected password so I can have a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

To change the hover effects try this that should keep the button black and 100% opacity when hovered.

.sqs-product-quick-view-content .sqs-add-to-cart-button {background-color: #000000!important}
.sqs-product-quick-view-content .sqs-add-to-cart-button:hover {background-color: #000000!important; opacity:100% !important;}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.