How can I center the main menu on the Warehouse theme?

Topic summary

A user seeks help centering the main menu in the Warehouse theme, which currently aligns to the left side of the screen.

Solution Provided:

  • Open the theme’s liquid.theme file in the code editor (Online Store → Theme → Edit code)
  • Paste custom CSS markup before the </body> tag
  • An implementation screenshot was shared to guide the process

Follow-up Issue:
After implementation, the menu briefly appears left-aligned for approximately 5 seconds during page load.

Recommended Fix:
Move the CSS code to a position below the <head> tag instead of before </body> to eliminate the loading delay and alignment flash.

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

How do I go about centering the main menu on the Warehouse theme? It is currently on the left side and want it central to the screen. Thanks for any input in advance!

Hello @CDAaccount

It’s GemPages support team and glad to support you today.

To provide you with the most precise solution in this case, could you please share the store link?

https://www.makeitvapor.com/

Hello @CDAaccount

It’s GemPages support team and glad to support you today.

I would like to give you a solution to support you:

  1. Go to Online Store → Theme → Edit code:

  1. Open your theme.liquid theme file

  2. Paste the below code before :


Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

Why does it still show up to the left briefly for like .5 seconds when loading in website?

@CDAaccount

Please move the above css to the position below the . tag