How to center the header navigation menu text on Empire theme?

Topic summary

A user seeks to center the header navigation menu text on their Shopify Empire theme store (poolcareshop.com.au).

Solution Provided:
Multiple respondents offered CSS code solutions with two main approaches:

  1. Custom CSS method (recommended): Navigate to Online Store > Themes > Customize > Theme settings > Custom CSS and add:
nav.site-navigation {
    justify-content: center;
}
  1. Direct file editing: Add CSS code to the bottom of theme.css or insert it in theme.liquid file above the </body> or </head> tag.

Key Points:

  • Most solutions use justify-content: center on the .site-navigation element
  • Media queries (min-width: 769px or 990px) are recommended to apply centering only on desktop views
  • The user initially struggled to locate the Custom CSS section, which was clarified with screenshots

Status: Multiple working solutions provided; awaiting confirmation from the original poster on which approach was implemented successfully.

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

I want to center the text on the header menu, website is
https://poolcareshop.com.au/

Same to the example below

1 Like

Hi @pnsempire

You can do that by adding this code to Custom CSS in Online Store > Themes > Customize > Theme settings

@media (min-width: 990px) {
body .site-navigation { justify-content: center; }
}

What do i replace it with?

Just add code to Custom CSS in Online Store > Themes > Customize > Theme settings.

there are many sections though?

Can you please advise where I can place the code? Do I go to “theme.css” ?

I can’t see “custom css” also do i place it at the bottom of the file? do i replace anything?

1 Like

You can add to theme.css at very bottom of file.

Hi @pnsempire , thanks for your sharing.

To address the issue, please help me go to your Online store → Theme → Customize → Theme settings → Custom CSS and insert the following custom CSS code:

nav.site-navigation {
    justify-content: center;
}

I hope my solution is helpful to you.

Liz

This is Richard from PageFly - Shopify Page Builder App

Hi @pnsempire Please add code here to fix it:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag


Hope my solution will help you resolve the issue.

Best regards,

Richard | PageFly

@pnsempire ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above


Result:

If it helps you, please like and mark it as the solution.

Best Regards :blush:

Custom CSS can be seen in Online Store > Themes > Customize > Theme settings

Hi @pnsempire

I hope you are well. You can follow our instructions below:

1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there

Here is the code for Step 3:

@media screen and (min-width: 769px){
nav.site-navigation {
    justify-content: center !important;
}
}

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.

Hi @pnsempire

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(min-width:1024px){
.site-navigation {
    display: flex;
    justify-content: center !important;
}
}

Result:

If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!