Mega menu downwarding problem on Dawn Theme

Topic summary

A user is experiencing layout issues with the mega menu on Shopify’s Dawn theme, where menu items extend infinitely downward instead of wrapping properly after a certain number of rows (around 20 items).

Initial Problem:

  • Mega menu rows continue downward indefinitely
  • User wants items to wrap to the right after approximately 20 rows
  • Mobile-friendliness must be maintained

Solution Provided:
A CSS code snippet was shared to add to the base.css file:

  • Uses CSS Grid with display: grid and grid-template-columns: 1fr 1fr
  • Applied only on desktop viewports (min-width: 768px)

Follow-up Issues:

  • Gaps between menu items are too wide after applying the fix
  • User wants to know how to reduce spacing
  • User also asks about alphabetically sorting the menu items

Status: The discussion remains open with unanswered questions about spacing adjustments and alphabetical sorting. Screenshots were shared to illustrate the problems.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

Hello,

I have a question about the Dawn theme mega menu. As you can see in the screenshot, the rows under the mega menu extend infinitely downward. How can I adjust this so that, for example, after the 20th row, it starts moving to the right? It’s also important that it remains mobile-friendly.

Thank you!

Hi @denisaydin , could you share your store link?

Hey @denisaydin

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

Best Regards,
Moeed

https://cultofart.co.uk/

Hi @denisaydin

You can add this code at the bottom of your base.css file to check

@media (min-width: 768px){
.mega-menu .mega-menu__list--condensed {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
}
}

1 Like

Thank you so much for the quick reply!

The gaps between items are too wide. How can we reduce this? Also, is it possible to have the items sorted alphabetically?

https://cultofart.co.uk/