Move header nav to align with logo and icons

Solved

Move header nav to align with logo and icons

TH8
Tourist
7 0 1

In the screenshot below the menu nav in the header is below the logor and the icons. I would like it to appear inline with them. I'm using the Enterprise theme. Can anyone provide an HTML or CSS solution? Thanks.

 

 

header alignment.png

Accepted Solution (1)
namphan
Shopify Partner
2197 290 328

This is an accepted solution.

Hi @TH8,

Please go to Actions > Edit code > Assets > main.css file and paste this at the bottom of the file:

@media (min-width: 769px) {
  .main-menu {
    order: 1;
    width: auto;
  }
  .header.search-is-visible .main-menu {
    display: none;
  }
  .header__search {
    display: none;
  }
  .header.search-is-visible .header__search {
    display: block;
  }
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

View solution in original post

Replies 11 (11)

namphan
Shopify Partner
2197 290 328

Hi @TH8,

Please send the website link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
TH8
Tourist
7 0 1
namphan
Shopify Partner
2197 290 328

Hi @TH8,

I tested and when you move, the search will show an overlay menu when enabled.

Screenshot.png

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
TH8
Tourist
7 0 1

Not sure why you're pointing that out?  I want to move the navigation elements in line with the logo and icons. I chose to minimize the search bar

TH8
Tourist
7 0 1

Or are you saying that when the nav elements are moved up, when the search icon is clicked they move below to show the search bar?

namphan
Shopify Partner
2197 290 328

Hi @TH8,

You want this:

1.png

I am referring to clicking the search icon, it will show something like this right?

2.png

Please let me know, I will check it.

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
TH8
Tourist
7 0 1

That is correct. I could disable search, we only have a small inventory

TH8
Tourist
7 0 1

I could disable search - we only have a small inventory

 

namphan
Shopify Partner
2197 290 328

This is an accepted solution.

Hi @TH8,

Please go to Actions > Edit code > Assets > main.css file and paste this at the bottom of the file:

@media (min-width: 769px) {
  .main-menu {
    order: 1;
    width: auto;
  }
  .header.search-is-visible .main-menu {
    display: none;
  }
  .header__search {
    display: none;
  }
  .header.search-is-visible .header__search {
    display: block;
  }
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
TH8
Tourist
7 0 1

Fantastic, thanks. I'll disable search for now.

namphan
Shopify Partner
2197 290 328

Hi @TH8,

You're welcome and happy to help 😊

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com