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