Horizon Theme Dropdown Fix: Multi-Column Menus for Better Navigation
Hey there, fellow store owners!
Ever found yourself staring at a beautifully designed Shopify theme, only to hit a snag with something seemingly simple like your navigation? It’s a super common scenario, and it’s exactly what Jenny from YS Radiance Code ran into recently with her Shopify store, which uses the clean and modern Horizon theme.
Jenny reached out to the Shopify Community because her BRANDS and CATEGORIES dropdown menus were, well, a bit of a mess. Instead of a neat, organized display, customers were greeted with incredibly long vertical lists. The problem? Many of those crucial links were extending way beyond the visible screen, completely inaccessible. Imagine trying to find your favorite product or brand, only to realize half the options are literally off-screen with no scrollbar in sight. Frustrating, right?
The Horizon Theme's Mega Menu Challenge
Jenny’s goal was clear: make every single brand and category link accessible, ideally by displaying them in a clean, three-column layout on desktop. Critically, she needed the mobile navigation to remain untouched and wanted to avoid any extra paid apps. Shopify Support had already confirmed that this wasn’t something Horizon’s standard header settings could fix on their own, pointing her towards a code-level customization.
This is a classic example of where a theme's default structure, while great for many uses, sometimes needs a little nudge to fit specific content needs. As foliostudio brilliantly pointed out in the thread, the Horizon theme does output a mega menu for these sections. However, each link was sitting inside a single mega-menu__column mega-menu__column--span-1. This means even if it's a "mega menu," it's essentially just one very tall column, leading to those off-screen links.
The Community's Smart Solution: CSS to the Rescue!
The good news is, the community rallied with a fantastic, no-app-needed solution! Both Moeed and foliostudio quickly identified that this was a job for some clever CSS, specifically using the theme’s built-in Custom CSS box. This is always our first go-to because it’s generally safer and easier than directly editing theme files, especially for store owners who might not be comfortable diving deep into Liquid code.
foliostudio provided an excellent, ready-to-use CSS snippet that transforms those sprawling vertical lists into a neat three-column layout, complete with a smart fallback for extra long lists.
Step-by-Step: Implementing Your Multi-Column Dropdown
Before you make any changes, even small CSS ones, it's always a best practice to duplicate your live theme. That way, if anything goes awry, you can revert to your previous version instantly. Better safe than sorry!
Here’s how you can implement this solution for your Horizon theme:
-
Duplicate Your Theme (Safety First!):
- From your Shopify admin, go to Online Store > Themes.
- Find your current Horizon theme.
- Click Actions > Duplicate. This creates a backup.
-
Access the Theme Customizer:
- Still in Online Store > Themes, click Customize on your live Horizon theme (or the duplicated version if you want to test there first).
-
Locate the Custom CSS Box:
- In the theme customizer, navigate to Theme settings (usually a gear icon or "Theme settings" in the left sidebar).
- Scroll down until you find the Custom CSS box. This is your playground for quick style adjustments.
-
Paste the Magic CSS:
- Copy the following code exactly as it appears:
@media screen and (min-width: 990px) { .menu-list__submenu:has(.mega-menu__column) { width: min(72rem, 90vw); max-width: 90vw; } .menu-list__submenu .mega-menu__column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; row-gap: 0.35rem; max-height: min(70vh, 36rem); overflow-x: hidden; overflow-y: auto; } }- Paste it into the Custom CSS box.
-
Understand What the CSS Does:
- The
@media screen and (min-width: 990px)part is crucial. It ensures these changes only apply to desktop screens (990 pixels wide and up), leaving your mobile menu drawer completely untouched, just as Jenny requested. .menu-list__submenu:has(.mega-menu__column)targets the entire dropdown panel. Thewidthandmax-widthproperties here ensure the mega menu panel has enough space to display three columns nicely. If your columns still look too squished after applying, this is the rule you'd tweak slightly..menu-list__submenu .mega-menu__columnis where the real magic happens.display: grid;turns the single column into a grid container.grid-template-columns: repeat(3, minmax(0, 1fr));tells it to create three equal-width columns.column-gapandrow-gapadd a little breathing room between your links, making them easier to read.max-height: min(70vh, 36rem);andoverflow-y: auto;are brilliant fallbacks. If your list of brands or categories grows super long again, the menu panel will automatically get a scrollbar, ensuring every single link remains accessible without running off the screen.
- The
-
Preview and Save:
- After pasting the code, click Save.
- Then, hover over your BRANDS and CATEGORIES menus on a wide desktop screen. Check that all links are reachable, the panel looks good, and the mobile menu still functions perfectly.
A Note on Deeper Customization
While the Custom CSS box is fantastic for quick fixes, foliostudio did mention that if Custom CSS is somehow disabled on your Shopify plan (which is rare but possible) or if the submenu position still clips in an odd way, the next step would be to add this CSS directly into your theme’s CSS file (often base.css or theme.css). This involves a bit more digging into the theme code, but it's still a CSS-only solution without touching Liquid files for collections or product URLs.
This whole discussion really highlights the power of the Shopify community. It’s amazing how quickly fellow merchants and experts can chip in with practical, actionable solutions that save others a ton of headache and development costs. So, if you're ever stuck on a design tweak or a feature you think requires a complex app, remember to check the Shopify forums or reach out to an expert. You might be surprised at how simple the fix can be!
Happy selling!