Jump to content

Disable Button Hover and Limit Size

Go to solution Solved by Lesum,

Recommended Posts

Hi All

How can you disable hover effect on buttons? At the present it fills in black and looks terrible. I would like it to do nothing. The cursor change to a hand is enough.

Secondly is there a way to set a maximum size for buttons?
Again currently if I scale browser on a large screen the buttons end up huge!

Any help greatly appreciated

site: www.studioyoung.com

 

Link to comment

@Inkdave To disable the hover effect and set a maximum size on the button, you can add this code in Website > Pages > Website Tools > Custom CSS

#siteWrapper.site-wrapper .sqs-button-element--primary{
    max-width: 220px !important;
}

#siteWrapper.site-wrapper .sqs-button-element--primary:hover {
    background: transparent !important;
    color: black !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
  • Solution

@Inkdave If you don't want the button to scale, you can set a fixed width with this code:

#siteWrapper.site-wrapper .sqs-button-element--primary{
    width: 220px !important;
}

Switching the button design from 'Fill' to 'Fit' in the Squarespace editor should improve the button's scaling as the screen size changes.

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? 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.