A Shopify store owner wants to center-align their main navigation menu while keeping the logo left-aligned, as their theme lacks a built-in option for this layout.
Proposed Solutions:
Three different CSS-based approaches were offered:
Basic centering approach: Add justify-content: space-between to the ul.header__links-list element in theme.css/base.css
Desktop-specific solution: Modify the header row segment width to 73% with justify-content: space-between, applied only on screens 1024px and wider, using the Custom CSS section in Theme Settings
Alternative desktop solution: Similar approach setting width to 80% with flexbox display properties, also targeting desktop viewports (1024px+)
All solutions involve editing CSS files through Shopify’s code editor and include media queries to ensure the changes only apply to desktop views. Visual examples were provided showing the expected result.
Summarized with AI on November 3.
AI used: claude-sonnet-4-5-20250929.
Hello everyone, I would like to move my main menu to the center, but the theme doesn’t have an option for this. Currently, the menu is left-aligned along with the logo. I want to keep the logo on the left and center-align the main menu.
If anyone can provide the code to achieve this, I would greatly appreciate your help!