Shopify themes, liquid, logos, and UX
The hovering function is applied to text, but the hovering function is not applied to the search icon and cart icon.
How can I change the color of both icons to black when hovering over the header?
lgbtqstyles.com // mohtse
Solved! Go to the solution
This is an accepted solution.
Hi @swoo0105 ,
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/base.css->paste below code at the bottom of the file:
.header:hover .header__icon .icon {
color: black;
}
Hope my answer will help you!
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Unlock the secrets to a record-breaking BFCM with PageFly and Canva
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from the Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hello @swoo0105 ,
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
.header-wrapper--border-bottom:hover .header__icon .icon {
color: #000 !important;
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
This is an accepted solution.
Hi @swoo0105 ,
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/base.css->paste below code at the bottom of the file:
.header:hover .header__icon .icon {
color: black;
}
Hope my answer will help you!
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Unlock the secrets to a record-breaking BFCM with PageFly and Canva
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from the Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hello @swoo0105 ,
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
.header-wrapper--border-bottom:hover .header__icon .icon {
color: #000 !important;
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025