EllisLeahy Posted March 23, 2021 Share Posted March 23, 2021 Site URL: https://www.neglectedpotential.co.uk How can I have my add to cart button not turn white when I hover over it, and just stay the colour and outline. Link to comment
simkrys Posted March 23, 2021 Share Posted March 23, 2021 body.primary-button-style-outline .black .sqs-add-to-cart-button:hover { background: #050505; color: #fefdfb; } EllisLeahy 1 Link to comment
EllisLeahy Posted March 23, 2021 Author Share Posted March 23, 2021 55 minutes ago, simkrys said: body.primary-button-style-outline .black .sqs-add-to-cart-button:hover { background: #050505; color: #fefdfb; } Thank you this works, however only when I have the CSS open. once I close this menu it goes back to how it was. Or if I change to a different item it goes back to having the white overlay. Link to comment
simkrys Posted March 23, 2021 Share Posted March 23, 2021 maybe try adding !important to override current styles as seen in this post EllisLeahy 1 Link to comment
EllisLeahy Posted March 23, 2021 Author Share Posted March 23, 2021 34 minutes ago, simkrys said: maybe try adding !important to override current styles as seen in this post Hi I tried this by putting it like this body.primary-button-style-outline .black .sqs-add-to-cart-button:hover { background: #050505; color: #fefdfb; !important } However it says there is a syntax error on that line, any other suggestions? Thank you for your help I really appreciate it Link to comment
simkrys Posted March 23, 2021 Share Posted March 23, 2021 heya, it should come before semi colon like so: body.primary-button-style-outline .black .sqs-add-to-cart-button:hover { background: #050505 !important; color: #fefdfb !important; } this is the extent of my knowledge poking around dev tool lol. EllisLeahy 1 Link to comment
EllisLeahy Posted March 23, 2021 Author Share Posted March 23, 2021 7 minutes ago, simkrys said: heya, it should come before semi colon like so: body.primary-button-style-outline .black .sqs-add-to-cart-button:hover { background: #050505 !important; color: #fefdfb !important; } this is the extent of my knowledge poking around dev tool lol. IT WORKED!! lol thank you so much for your help. simkrys 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment