Refresh Theme - I simply want to move the search bar to the center and the menu to the left

Hi! I’d like to know where and how to switch the positions of the menu (beneath the header logo on the center) with the search bar on the left. Thanks in advance!

Hi @stussieberg ,

To confirm, are you trying to accomplish this?

Yes exactly like that scheme! Thanks for the answer.

I’m happy to help you with that! You can easily achieve this by adding a simple CSS code to your theme.

To get started, follow these steps:

  1. Log in to your Shopify Admin panel.
  2. Go to Online Store > Themes > Customize.
  3. In the Customizer, navigate to the header section and add the below code in the Custom CSS field.
@media screen and (min-width: 990px) {
  .header--top-center {
    grid-template-areas:
      'navigation heading icons'
      'left-icons left-icons left-icons';
  }

.header > .header__search {
    justify-self: center;
 }
}​

It should look something like this:

Yes, it worked! Why doesn’t ChatGPT give answers like this? Thank you so much for your readyness. Cheers bro

1 Like