Personalized checkout and custom promotions with Shopify Scripts
Is there a way to make the menus open when the mouse hovers over it?
This solution doesn't work: https://community.shopify.com/c/shopify-design/dawn-theme-how-to-add-the-ability-to-hover-over-dropd...
Hello,
I'm not a coder, so I have to do things the app way, if you're still looking for a coding solution I'm sure some nice coding-wizard will come along soon 😊
Anyway, I'd be using Meteor Mega Menu, because that would allow you to use images in addition to descriptions. I'd look at the demo store to see if a template would be suited to your needs: https://meteor-sneakers.myshopify.com/
Have a great day, and I hope this helped.
Hi @MTSD
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find layout > theme.liquid and paste this at the bottom of the file:
<script>
let items = document.querySelector(".header__inline-menu").querySelectorAll("details");
console.log(items)
items.forEach(item => {
item.addEventListener("mouseover", () => {
item.setAttribute("open", true);
item.querySelector("ul").addEventListener("mouseleave", () => {
item.removeAttribute("open");
});
item.addEventListener("mouseleave", () => {
item.removeAttribute("open");
});
});
});
</script>
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