Hello
Both on my product page or on my home page - Image with text section.
My hover button has a black border which i would like to remove
can anyone advise
rgds
A user seeks to remove the black border that appears on hover for buttons in two locations: product pages and the “Image with text” section on the homepage.
Solutions Provided:
Two responders offered CSS code snippets to address the issue:
For homepage buttons (Image with text section): Add CSS targeting .banner__buttons > a.button:hover with border: none !important;
For product page buttons: Add CSS targeting .product-form__buttons > button.product-form__submit:hover with border: none !important;
An alternative solution modifies the box-shadow property on .button:not([disabled]):hover:after
Implementation:
All solutions require navigating to Online Store > Themes > Actions > Edit Code > base.css and pasting the provided code at the end of the file.
Screenshots were included demonstrating the code placement and expected results. The discussion remains open, awaiting confirmation from the original poster on whether the solutions resolved the issue.
Hello
Both on my product page or on my home page - Image with text section.
My hover button has a black border which i would like to remove
can anyone advise
rgds
Hello @TBS2023 ,
Here are the steps to apply the necessary changes in your Shopify store:
.banner__buttons> a.button:hover {
border: none !important;
}
Let me know if you need further assistance!
Hello @TBS2023
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
.button:not([disabled]):hover:after, {
box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) rgba(255,255,255, calc(1 - 0)), 0 0 0 calc(var(--buttons-border-width) + 0.5px) rgba(var(--color-button), var(--alpha-button-background));
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello @TBS2023 ,
Below is the CSS for your product page button. Please set it up following the same approach as outlined above to ensure consistency and maintain the desired design.
.product-form__buttons>button.product-form__submit:hover {
border: none !important;
}
Let me know if you need further assistance!