Remove button zoom on hover (Dawn)

Solved
swishlatvija
Explorer
62 0 8

Hello,

 

Could someone please show us how to remove the zoom effect from all Shopify buttons once they are hovered and hopefully also tell us how to add a different hover color? 

Link: https://swish.eu/pages/contact

 

Image:

 

Screenshot (8).png

 

Kind Regards,

Accepted Solutions (5)
GemPages
Shopify Partner
5587 1260 1161

This is an accepted solution.

Hello @swishlatvija 

 

It's GemPages support team and glad to support you today.

I would like to give you a solution to support you.

1. Go to Online Store -> Theme -> Edit code.

2. Open your theme.liquid theme file.

3. Paste the below code before </body>:

 

<style>
.button:after, .shopify-challenge__button:after, .customer button:after, .shopify-payment-button__button--unbranded:after,
   .button:before, .shopify-challenge__button:before, .customer button:before, .shopify-payment-button__button--unbranded:before, .shopify-payment-button [role=button]:before, .cart__dynamic-checkout-buttons [role=button]:before{
   display: none !important;
}
</style>

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

View solution in original post

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - add this css to the very end of your base.css file and check, what color do you want on hover?

.button:not([disabled]):hover:after{box-shadow: none;}

 

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂

View solution in original post

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - for hover add this

.button:hover{background-color: #ff0000;}
You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂

View solution in original post

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - something weird as I did not give any code to remove border, did you add any other code?

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂

View solution in original post

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - please remove my code given to disable shadows, so we can understand if that code is an issue or it is something else

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂

View solution in original post

Replies 13 (13)
GemPages
Shopify Partner
5587 1260 1161

This is an accepted solution.

Hello @swishlatvija 

 

It's GemPages support team and glad to support you today.

I would like to give you a solution to support you.

1. Go to Online Store -> Theme -> Edit code.

2. Open your theme.liquid theme file.

3. Paste the below code before </body>:

 

<style>
.button:after, .shopify-challenge__button:after, .customer button:after, .shopify-payment-button__button--unbranded:after,
   .button:before, .shopify-challenge__button:before, .customer button:before, .shopify-payment-button__button--unbranded:before, .shopify-payment-button [role=button]:before, .cart__dynamic-checkout-buttons [role=button]:before{
   display: none !important;
}
</style>

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - add this css to the very end of your base.css file and check, what color do you want on hover?

.button:not([disabled]):hover:after{box-shadow: none;}

 

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
swishlatvija
Explorer
62 0 8

Thanks a lot, @suyash1 

 

Could you please show an example with any color? For instance, red?

suyash1
Shopify Partner
8656 1062 1406

@swishlatvija - add this css and check, this will change all buttons to red color

.button{background-color: #ff0000;}

 

suyash1_0-1673540208938.png

 

 

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
swishlatvija
Explorer
62 0 8

thanks @suyash1 

 

And my apologies for not being precise enough. I was thinking about the hover color.

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - for hover add this

.button:hover{background-color: #ff0000;}
You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
swishlatvija
Explorer
62 0 8

@suyash1 , thank you so much, but your code also removed the classic borderline on hovering. Is there any fix so that the hover buttons still have a black border?

 

Hopefully, all buttons have the same size.

Link: https://swish.eu/collections/escalade-sports-basketball-accessories

Pic below:

 

buttons.png

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - something weird as I did not give any code to remove border, did you add any other code?

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
swishlatvija
Explorer
62 0 8

Hey, @suyash1 

 

This code removed the borderlines on hover.

suyash1
Shopify Partner
8656 1062 1406

This is an accepted solution.

@swishlatvija - please remove my code given to disable shadows, so we can understand if that code is an issue or it is something else

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
HELDERWRLD
Excursionist
77 0 4

Hello Suyash,
And how can i remove the zoom effect when i pass the mouse from the product images?

Site: https://c04baf-2.myshopify.com/
Passe: Diversusoficial

suyash1
Shopify Partner
8656 1062 1406

@HELDERWRLD - please add this css to the very end of your base.css file and check

 

@media screen and (min-width: 990px){
.card-wrapper:hover .media.media--hover-effect>img+img {transform: none !important;}
}
You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
HELDERWRLD
Excursionist
77 0 4

Thank you Suyash, it worked!