Controlling how many categories appear per row in a Shopify mega menu (large drop-down navigation) to switch from a 7/3 split to 5/5.
Key solution (Shopify theme CSS):
In assets/component-menu-dropdown.css, remove the rule: .list-mega-menu { column-gap: 3rem; }.
Replace the .list-mega-menu block to keep flex-wrap and row-gap only (remove column-gap), ensuring items can wrap evenly.
In .mega-menu__item, add width: 20% to force five items per row (5 × 20% = 100%), keeping existing flex and max-width.
Outcome: The original poster confirmed the CSS changes worked and now shows five categories per row. A screenshot was provided for context, but the resolution relies on CSS edits.
New development: Another user with the Kalles theme (the4) reports a similar issue (limited to three items per row) but lacks component-menu-dropdown.css and instead has mega-menu.css. Their request for theme-specific guidance remains open and unresolved.
Summarized with AI on December 21.
AI used: gpt-5.
I have the same issue, IIt allows maximum 3 items (collections) per row and I want them to all be in the same row. Could you please help me with that as well?