Shopify Themes

Unlock Seamless Navigation: How to Align Horizon Theme Submenus and Add Carets in Shopify

Hey there, fellow store owners! Ever felt like your Shopify theme's navigation is almost perfect, but just needs a little tweak to truly shine? That's exactly what a recent discussion in the Shopify Community tackled for users of the Horizon theme. Many store owners find themselves wanting that sleek, intuitive user experience that themes like Dawn offer right out of the box.

Our friend addywells kicked off a great thread, looking to upgrade their Horizon theme's dropdown submenus. Their goals were spot on:

  • Adding a subtle 'caret' or arrow next to menu items with submenus (like 'Support'), making it clear to users that more options await.
  • Ensuring the dropdown menu aligns perfectly underneath its parent category, with its background fitting snugly around the text, rather than sprawling across the page.

If these sound like your navigation woes, you're in good company. The Horizon theme, while robust, sometimes needs a little custom touch for its navigation. Let's dive into how the community solved this!

Default Shopify Horizon theme dropdown submenu showing misalignment and lack of caret
Default Shopify Horizon theme dropdown submenu showing misalignment and lack of caret

The Horizon Theme Navigation Challenge

Addywells's initial post perfectly captured the issue:

Screenshot 2026-05-26 at 7.39.41 PM

Default Horizon dropdowns can often appear misaligned or have oversized backgrounds. More importantly, without visual cues like carets, users might miss out on valuable submenu content, impacting their journey through your store. A clear, intuitive navigation is paramount for guiding customers through your product offerings and improving their overall shopping experience.

Why "Custom CSS" Isn't Always the Answer for the content: Property

Addywells first tried adding the caret code to the theme's 'Custom CSS' section, only to be met with an "invalid property value: content" error. Community expert tim_tairli quickly clarified a crucial point for Shopify theme customization: "Yes, you can’t paste it into “Custom CSS” as it does not like the content: property at all."

This is a common pitfall for many Shopify store owners dabbling in custom code. While the 'Custom CSS' section in the theme editor is fantastic for most styling tweaks, certain advanced CSS properties, especially those involving generated content like content: (used for adding icons or text before/after elements), are often restricted or stripped out for security and validation reasons. The solution? Leveraging the 'Custom Liquid' section.

The Comprehensive Solution: Custom Liquid and Strategic CSS

To implement both the caret icons and achieve proper submenu alignment, you'll need to work within the 'Custom Liquid' section of your theme. This allows you to embed a full tags:


Understanding the Caret CSS

  • .menu-list__link:is(button, [aria-haspopup]) .menu-list__link-title:after: This selector targets the title of menu items that have submenus (indicated by aria-haspopup or being a button). The :after pseudo-element is where our caret will be placed.
  • content: "\22C1";: This is the magic! \22C1 is the Unicode character for a small triangle (caret). The content property is what allows us to insert this character.
  • transform: scaleY(0.5);: Initially scales the caret to be half its original height, making it subtle.
  • display: inline-block; margin-left: 5px;: Ensures the caret is next to the text and has a little spacing.
  • font-size: 0.8em;: Further refines the size of the caret relative to the text.
  • transition: transform linear 0.1s;: Adds a smooth animation when the caret changes direction.
  • .menu-list__list-item:hover .menu-list__link-title:after { transform: scaleY(-0.5); }: When a menu item with a submenu is hovered over, the caret flips vertically, providing a clear visual cue that the submenu is now active or open.

Beyond the Carets: Achieving Perfect Alignment

While the caret code primarily addresses the visual indicator, the original thread also highlighted issues with submenu alignment and background sizing. The solutions for these often involve additional CSS targeting the submenu containers (e.g., .menu-list__list or similar classes within the Horizon theme). This typically includes adjusting position, left, width, and background properties to ensure the dropdown appears directly beneath its parent and its background fits snugly around the content, mimicking the sleek appearance of themes like Dawn.

The community thread references more detailed solutions for alignment, which often involve overriding the theme's default positioning for dropdowns. By setting the parent menu item to position: relative; and the dropdown submenu to position: absolute; with left: 0; and a defined width (or width: max-content;), you can achieve that desired snug fit and perfect alignment.

Benefits of an Optimized Navigation

Implementing these custom touches goes beyond mere aesthetics:

  • Enhanced User Experience (UX): Clear carets and well-aligned submenus make navigation intuitive, reducing user frustration and improving discoverability of content.
  • Professional Storefront: A polished navigation system reflects positively on your brand, conveying professionalism and attention to detail.
  • Increased Engagement: When users can easily find what they're looking for, they're more likely to explore your store, leading to longer sessions and potentially higher conversion rates.
  • Reduced Bounce Rate: Confusing navigation is a major reason visitors leave a site quickly. A clear path keeps them engaged.

Need Expert Shopify Development & Migration Help?

Customizing your Shopify theme can sometimes feel like navigating a maze, especially with specific properties like content: or intricate layout adjustments. At Shopping Cart Mover, we specialize in Shopify development, theme customization, and seamless migrations. Whether you're looking to fine-tune your Horizon theme, migrate from another platform, or build bespoke functionalities, our team of experts is here to ensure your online store not only looks great but performs flawlessly.

Don't let technical hurdles stand between you and a perfect online store. Leverage expert insights and custom solutions to elevate your Shopify experience. If you found this guide helpful or need further assistance with your Shopify store, feel free to reach out to the Shopping Cart Mover team!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases