Hi, I am looking to add another menu element to the Header section in the horizon theme for my store. None of the existing articles about this have helped at all so I thought I would make my own and ask.
I have already created the menu that I want to add, just having trouble coding.
TIA to anyone that can provide me some insight into the coding!
Not quite clear – do you want to have another menu item(s)/submenu added to the current one? Then you’d rather edit your current menu.
If your goal is to add another menu independently from the main one, then it’s a complex task and not only coding aspect, but rather design-wise. Also what should happen on mobile?
Under header in the theme editor, the default is logo and menu. I want another menu which is independent of the default menu in the theme. on mobile the menu would be reduced to icons, but I just want to focus on actually adding it in
that line of code doesnt exist for me in header.liquid, also in the header-group.json it says that it is a global asset or something and my code may be overwritten by shopify in future updates, which isnt ideal.
Adding another menu block to Horizon theme’s header is not something that is easily done. And even if you did manage to do it (with much work), theme updates would probably not handle it well…
I fiddled with the code for ages but couldnt figure it out (no experience) just gonna leave it for now as PaulNewton said, it wouldnt add any business value atm so not worth it