Shopify themes, liquid, logos, and UX
Hey guys,
How can I add a hover effect to the header on products?
I don’t want anything complicated. Just a simple hover effect for the products only.
I’d just like to add an effect where, when I hover over "Products," a small dropdown menu appears underneath, showing all my products. This way, I can simply click on a product and be redirected to it.
Here’s my store URL: 1049xn-ya.myshopify.com
And here's how I want it to look:
And if needed, here’s the link to a store that shows how I want it to look the same on mine.
Thank you,
Tim
Follow this:
Step 1: Add Sub-Menu Items
/* Show dropdown on hover */
ul li:hover > ul {
display: block;
}
ul ul {
display: none;
position: absolute;
background-color: #fff;
padding: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
list-style: none;
}
ul ul li {
margin: 5px 0;
}
Once done, test your changes by previewing your store. If everything looks good, click Publish in your Shopify theme editor.
If you need further assistance, feel free to reach out—I’d be happy to help!
Hey, I really appreciate your help.
I successfully added a sub-menu item and added the code to base.css (I don't have styles.css or theme.css), but unfortunately, it’s not working. Nothing shows up, and there’s still an arrow next to "Products." When I click it, it gets underlined, which I don’t want. I just want the dropdown menu to appear without having to click on it.
Take a look yourself to see how it looks: https://1049xn-ya.myshopify.com/
Thank you,
Tim
Hey, are you there? Please check the previous message, I wrote you feedback there.
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