A menu button’s hover effect (which enlarges the button) was causing the default darkened overlay to break, appearing incorrectly positioned only under the icon when hovering.
Solutions Provided:
Devinlabs: Suggested a CSS fix with a screenshot showing the solution
PageFly-Oliver: Recommended removing old code and applying new code in the theme.liquid file
Steps: Online Store > Themes > Edit code > Search theme.liquid > Paste code at bottom > Save
ThePrimeWeb: Provided similar solution with detailed instructions
Navigate to Edit Code > Search “theme.liquid” > Paste code below <head> tag
Resolution: The issue was successfully resolved. The original poster confirmed the solution works perfectly.
Summarized with AI on November 11.
AI used: claude-sonnet-4-5-20250929.
Hello, I gave my menu button a hover effect, which transforms it to be larger. This works well, but the default darkened overlay now breaks when I hover.
Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference.
Screenshot is for reference only, the correct code to paste is the one shown above.