Hello everyone,
I’m working on customizing the header menu in my Shopify store, which uses the Horizon theme, and I’m looking for some expert guidance. I’m trying to implement a more robust dropdown menu system for desktop display and could use some help achieving the following:
- Caret Icon for Sub-Menus: I’d like a caret (down arrow) icon to appear next to any main menu items that have sub-menus, to clearly indicate they are dropdowns.
- Dynamic Dropdown Width: Instead of a fixed-width and number of columns dropdown, I need the dropdown menu’s width to dynamically adjust based on the length of its content. This would prevent awkward spacing or truncation for longer sub-menu item names. The dropdown menus are positioned directly below the parent menu.
- Underlined Active Options: When a menu option (either main or sub-menu) is hovered over or focused on, I want it to be underlined to provide clear visual feedback.
- Click Behavior for Parent Links: For first-level menu items that have a sub-menu, I want clicking on them to reveal the sub-menu rather than navigating to a new page. The user should only navigate if they click on a specific sub-menu item.
I’m comfortable with some basic theme customization, but these specific requirements are a bit beyond my current skill set. Any advice, code snippets, or pointers on where to look in the Horizon theme’s files would be greatly appreciated!
Thanks in advance for your help!