A user encountered an issue where adding a dropdown menu to their navigation caused the parent ‘Products’ link to become unclickable in the Debut theme.
Root Cause:
The theme wasn’t using an anchor tag for the parent menu item when a dropdown was present, instead using a span element.
Solution Provided:
Edit site-nav.liquid in the Snippets folder (around line 27)
Replace the span element with an anchor tag wrapping the same code
This restored clickability to the parent link
Additional Customization:
The user also requested an animated underline effect on hover. Custom CSS was added to theme.css.liquid to create a centered, expanding underline animation. A minor adjustment removed the persistent underline on active pages.
Later Comments:
Several users noted this solution doesn’t apply to newer themes like Dawn (2023+), as theme structures differ significantly. For Dawn and other modern themes, different code modifications are required, with one user linking to a separate discussion thread addressing Dawn-specific navigation issues.
Summarized with AI on November 14.
AI used: claude-sonnet-4-5-20250929.
Probably because you have to click to open the dropdown menu, and if that were linked it would take you to another page no? Just add a “View All” as your top link and link it to /collections/all
It should if it’s a hover effect, I assumed it had to be clicked to open. There must be a condition in the code somewhere to not add an anchor tag to the parent element if there’s a dropdown menu for whatever reason. You’ll have to go into the code and add it in yourself. What theme are you using?
See, on my Debut theme, I have to click to get the dropdown menu to appear. Maybe they did away with that on an update, I dunno. Whatever the case, if you want to make the first link clickable you have to go to Online Store > Actions > Edit Code on the theme you want to edit. Open your Snippets folder and open site-nav.liquid – You’re going to want to scroll to about line 27, for me anyway. It’ll look like this to you:
Right there at the bottom, you’re looking for that – Delete that line, and just put this in it’s place. It’s the same code just with an anchor tag wrapped around it:
{{ link.title | escape }}{% include 'icon-chevron-down' %}
Should be good to go. Let me know if you have any issues.
Can you post a store url, I’m not entirely sure my Debut is up to date. I’ll need a password if password protected also, which you can find in Online Store > Preferences > Password Protection
thats worked, thanks! However, when i click a page the underline stays on. Is there a way this can go when your on the selected page? I have attached an image for refrence.
If you just delete what I posted it should work just fine. Only the style referencing:
.site-nav__link--active .site-nav__label::after
I just undid all of those styles in the console and the line is gone, and when you hover it still animates. Whatever though, if you’re happy I’m happy : )
All themes are different. In this case it wasn’t using an anchor tag to display the first item in the list and using a span. They could be preventing the default action through javascript as well. Someone would need to take a look at your code. What theme are you using? And can you post a link to your site, please post the password to view your site if it’s currently hidden. Note, I mean the password found in Online Store > Preferences > Password – not your username and password for your admin.
hey - this won’t work for dawn theme. i dont see that section to put code in for the dawn theme. Anyone know how to solve?! this is my site and i’m trying to fix it for the ‘collections’ tab - i want the collections top part to show all collections and then the specific dropdowns to link as they are linked… here is my site: www.cubicleculture.co