Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Remove border highlight around buttons when hovering

Solved

Remove border highlight around buttons when hovering

rencafenyc
Excursionist
30 1 3

Hi, how can I remove the border highlight that shows around all buttons on the website when the cursor is hovering over it? For example:

 

Screenshot 2025-02-12 at 11.58.53 PM.pngScreenshot 2025-02-12 at 11.58.59 PM.png

 

 

 

 

 

 

 

 

 

URL: https://rencafenyc.com/pages/contact

Accepted Solution (1)

LizHoang
Shopify Partner
1251 159 195

This is an accepted solution.

Hi @rencafenyc 

- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

.button:not([disabled]):hover:after, .shopify-challenge__button:hover:after, .customer button:hover:after, .shopify-payment-button__button--unbranded:hover:after {
    --border-offset: unset !important;
}

 

Result: 

LizHoang_0-1739437489681.png

 

Best,

Liz

 

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

View solution in original post

Replies 4 (4)

EBOOST
Shopify Partner
1404 352 433

Hi @rencafenyc ,

May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code

EBOOST_1-1672356985580.png
2. Assets/base.css
3. Add code below to end of file

body .button:not([disabled]):hover::after,
body .shopify-challenge__button:hover::after,
body .customer button:hover::after,
body .shopify-payment-button__button--unbranded:hover::after {
  --border-offset: 0px;
}

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free. Github.com/eboost10
- ❤❤DONATE ❤❤Coffee tips

LizHoang
Shopify Partner
1251 159 195

This is an accepted solution.

Hi @rencafenyc 

- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

.button:not([disabled]):hover:after, .shopify-challenge__button:hover:after, .customer button:hover:after, .shopify-payment-button__button--unbranded:hover:after {
    --border-offset: unset !important;
}

 

Result: 

LizHoang_0-1739437489681.png

 

Best,

Liz

 

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

Pooja-Tiwari
Shopify Partner
28 1 4

Hi,
Please add this css on base.css file

.button:not([disabled]):hover:after
--border-offset: 0px;

}

If you Need a Shopify developer and Designer ? Hire us. If helpful then please Like and Accept Solution.
Email : pooja.krishainfotech@gmail.com Whatsapp : 8602888295
Shopify Design Changes | Shopify Custom Coding | Custom Modifications | Store Migration | Product Uploading | Digital Marketing SEO

ZestardTech
Shopify Partner
6148 1100 1476

Hello @rencafenyc,

Here are the steps to apply the necessary changes in your Shopify store:

  1. In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
  2. Locate Asset > base.css and paste the following code at the bottom of the file:

 

.button:not([disabled]):hover:after, .shopify-challenge__button:hover:after, .customer button:hover:after, .shopify-payment-button__button--unbranded:hover:after {
    --border-offset: unset !important;
}

 

Let me know if you need further assistance!

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing