Jump to content

Customizing color & hover of one button

Recommended Posts

Site URL: http://https/pentagon-flugelhorn-7ba3.squarespace.com/

Hi there! I currently have all buttons on my site set to utilize the hover functionality. When you hover, the button background color is HSL 251°, 74%, 45% or #3d1ec8 with a white font.

On my Home page, I have two buttons: "Learn How I Can Help You" and "Contact Me".
I would like for both of these button to NOT have a hover feature but rather just have the button background color be HSL 251°, 74%, 45% or #3d1ec8 with a white font regardless of whether or not you're hovering (like the attached file of the "Contact Me" button)

What is the necessary code and where do I input?

Many thanks!

 

Screen Shot 2020-04-01 at 2.58.44 PM.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Home > Design > Custom CSS

a.btn.btn--border.theme-btn--primary-inverse, div#block-aa8c641448dd694bc379 a {
    background: transparent !important;
    color: #3d1ec8 !important;
}

 

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

@tuanphan Thank you so very much for the quick reply! 

I plugged in the code and the only change I've noticed is that the phone number button in the header and the "Learn How I Can Help You" button don't change color when you hover on them... The button still doesn't have a consistent background color.

To confirm, my goal is to have the "Learn How I Can Help You" button stay permanently purple with white writing regardless of whether or not you're hovering.

Note: I'd now like to only change this one button ("Learn How I Can Help You")instead of that one + "Contact Me"

Do you have another coding suggestion?

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.