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

Solved

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

stussieberg
Tourist
7 0 1

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! 

 

 

Screenshot 2024-07-23 at 21.35.05.png

Accepted Solution (1)
Roy-ロイ
Shopify Partner
91 19 34

This is an accepted solution.

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: 
Roy_0-1721772849096.png

 

 



Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )

View solution in original post

Replies 4 (4)

Roy-ロイ
Shopify Partner
91 19 34

Hi @stussieberg , 

To confirm, are you trying to accomplish this?

Roy_0-1721772131112.png

 

 

Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )

stussieberg
Tourist
7 0 1

Yes exactly like that scheme! Thanks for the answer.

Roy-ロイ
Shopify Partner
91 19 34

This is an accepted solution.

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: 
Roy_0-1721772849096.png

 

 



Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )

stussieberg
Tourist
7 0 1

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