Centralizing menu items in the Refresh theme header

Hello, I’d like to keep my logo on the left, but I’d like my menu items to be centralized. Is there a way to do so using the Refresh theme?

Hi @belal5 ,

Would you mind to share your URL website? with password if its protected. Thanks!

My Store (68bff2.myshopify.com)

Thank you for the information.

Try this.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
  4. And Save.
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu {
    grid-gap: 19rem;
}

Result:

I hope it help.

This code works perfectly on desktop, but on mobile it makes the header overflow.

Hi @belal5

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the base.css file:
@media screen and (min-width: 990px) {

.header {grid-template-columns: 1fr auto 1fr !important;}
}

Regards,

San

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottom of the file:
@media (min-width: 768px){
.header--middle-left {
column-gap: 25rem;
}
}
@media (max-width: 992px){
.header--middle-left {
column-gap: 5rem!imprtant;
}
}