Shopify themes, liquid, logos, and UX
Hi! I am trying to change the hover action for the search and shopping bag icons in my header. Currently it is the default magnifying glass action. Could someone help me remove the hover action and make it so that the fill color changes when you hover over it? I am trying to replicate the hover action from the social icons in my footer.
I am using the Dawn theme and my website is www.day204clothing.com
Please let me know if you have any questions and your help is greatly appreciated!
Solved! Go to the solution
This is an accepted solution.
Hi there,
Adding the following CSS at the end of your base.css file should address your question:
.header__icon:hover .icon {
transform: none !important;
opacity: 0.5 !important;
}
Let me know if this fixed your issue.
Cheers!
This is an accepted solution.
Hi @Day204 .
I’m Richard Nguyen from PageFly- Free Landing Page Builder
You can go to Online store => themes => actions => edit code and add this code on file base.css
.header__icon:hover .icon {
transform: unset !important;
opacity: 0.5 !important;
}
or
.header__icon:hover .icon {
transform: unset !important;
color: red !important;
}
Hope this answer helps.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
yes, please try this code
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css ->paste below code at the bottom of the file.
.header__icon:hover .icon {
opacity: 1 !important;
color: #ffa500;
}
This is an accepted solution.
Hi there,
Adding the following CSS at the end of your base.css file should address your question:
.header__icon:hover .icon {
transform: none !important;
opacity: 0.5 !important;
}
Let me know if this fixed your issue.
Cheers!
This is an accepted solution.
Hi @Day204 .
I’m Richard Nguyen from PageFly- Free Landing Page Builder
You can go to Online store => themes => actions => edit code and add this code on file base.css
.header__icon:hover .icon {
transform: unset !important;
opacity: 0.5 !important;
}
or
.header__icon:hover .icon {
transform: unset !important;
color: red !important;
}
Hope this answer helps.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
This worked! Thanks
This is an accepted solution.
yes, please try this code
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css ->paste below code at the bottom of the file.
.header__icon:hover .icon {
opacity: 1 !important;
color: #ffa500;
}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025