Shopify themes, liquid, logos, and UX
Hi there,
I've changed the colour of my button but somehow it has a default border that shows on hover. Can I get rid of this?
Used below code for the change of color, tried to add 'border: none' but this didn't work.
.button:hover {
background-color: #4b0059;
color: white;
}
Website - bottom section
password: waiheke
thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @INFRA ,
May I suggest to update code these steps:
1. Go to Store Online-> theme -> edit code
2. Assets/base.css
3. Add code below to end of file
body .button:hover:after {
--border-offset: 0px!important;
}
This is an accepted solution.
Hi @INFRA ,
May I suggest to update code these steps:
1. Go to Store Online-> theme -> edit code
2. Assets/base.css
3. Add code below to end of file
body .button:hover:after {
--border-offset: 0px!important;
}
Hello @INFRA
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
.button,
--border-opacity: 0px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025