Shopify themes, liquid, logos, and UX
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.
Here is the overlay when not hovering,
and here is the overlay (right under the icon only) when hovering,
Site: https://projectwee.org/
Password: iachay2
Solved! Go to the solution
This is an accepted solution.
Hey @OrionT,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
#shopify-section-sections--15680778207286__header .header__icon:hover {
transform: none !important;
}
#shopify-section-sections--15680778207286__header .header__icon:hover img {
transform: scale(1.2) !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hi OrionT,
You can do simply fix by CSS. I attached a screenshot. please
check it will solve your issue.
let me know if you still facing any issue.
Hi @OrionT ,
You can remove old code and apply new code
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
.header__icon span:hover{
transform: scale(1.2);
}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hey @OrionT,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
#shopify-section-sections--15680778207286__header .header__icon:hover {
transform: none !important;
}
#shopify-section-sections--15680778207286__header .header__icon:hover img {
transform: scale(1.2) !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Works perfect, thank you!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025