A user encountered persistent button outlines on their Shopify store that couldn’t be removed through theme settings. Multiple solutions were provided:
Primary Solution (Confirmed Working):
Navigate to: Online Store → Themes → Actions → Edit Code → base.css → line 723
Delete the CSS code controlling .button:not([disabled]):hover:after and related selectors
This removes the box-shadow property creating the outline effect
Alternative Approaches:
One responder suggested adding custom CSS with display: none for the button hover state
Another identified the outline source as box-shadow in base.css (line 1364) and recommended removing it for both default and hover states
Technical Details:
The outline appears on both initial button state and hover interactions
Issue stems from default theme styling, specifically box-shadow properties
Solutions require editing theme code files
Resolution: The user confirmed the first solution successfully removed the outline. The discussion is resolved.
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
Hi! I am trying to get rid of an outline on some buttons on my store, but nothing seems to work. I have also tried adjusting theme button settings, but that didn’t work either. Can anyone help me get rid of the outline?
The issue you are facing is about the default theme’s styles. If you are familiar with code you can edit the theme code and remove it. If not, consider asking for the help of a professional.
The outline comes from base.css file, line №1364.
.button:after
And the outline is a “box-shadow” CSS property, you can remove it and save the changes. On the initial button state, the outline should be gone. But there is also a hover outline. The hover outline comes from base.css line №1381.
.button:not([disabled]):hover:after
Here you can remove the “box-shadow” CSS property and outline should be gone for the hover state as well.
But, consider using some hover affect to show users any interactivity.