I followed a youtube vlogger’s video to edit Dawn header to suit our educational context: basically we’d like the top link to work as well as the children. (Don’t know why Shopify doesn’t like that too tbh! Why have a top link which doesn’t link to anything, why, oh why!?)
Because making it a link is basically an anti-pattern. For dropdown navigation making the text that opens the dropdown a link itself means some users will never be able to see the submenu because the page navigates everytime the link activates.
And complicates the styling for text that indicates the “active” area in navigation
If you need a “toplevel” item use a sublink of “All” , “Overview”, “Getting Started” etc
Where “Shoes” and other menu buttons gets a sub items of “Shop All”
It’s great your learning coding a big part of web development is NOT wasting time doing things for a personal aesthetic due to lack of experience.
Rhetorical questions for feature validation - Did any customer ask for this? What is the actual core fundamental problem the customer complained about? how does this solve that without creating more complaints.
When you see some design decision in a theme from a billion dollar company please first consider maybe just maybe they know what they are doing, and second consider that trying to counter that can cause serious UX problems if not outright crippling accessibility. Then think about adding a feature.
Also dawn is open source so you see if the issue is already discussed or directly raise your issue if your convinced some feature should be added
Most the time if you create an inherent navigation problem it will be completely invisible to you because it works the way YOU expect and in YOUR context, meanwhile customers get annoyed and they wont inform you they just bounce.
Take the code of liquid snippet and remove all the liquid so you can examine what the pure underlying html structure is like to spot issues such as missing quotes, greater than signs(>), closing tags, or improper nesting etc.
Gee, you’ve taken the time to write two replies, but neither really seems to help us directly with the issue. Still, thank you for the effort and the suggestions, Paul. Just recalled that according to systems theory negative feedback may be better than no feedback and even positive feedback…