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.
Topic summary
A user seeks to reposition their Shopify store’s header navigation menu to align horizontally with the logo and icons, rather than appearing below them. They’re using the Enterprise theme.
Key Issue Identified:
When moving the navigation elements up, the search functionality creates an overlay that conflicts with the new layout. The search bar displays over the repositioned menu when the search icon is clicked.
Solution Provided:
A CSS code snippet was shared to add to the main.css file (via Actions > Edit code > Assets). The code uses media queries to:
- Reorder the main menu to align with header elements
- Control search bar visibility and display behavior
- Hide the main menu when search is active
Outcome:
The user accepted the solution and decided to disable the search feature entirely, as their store has limited inventory. Issue resolved.
Hi @TH8 ,
Please send the website link, I will check it for you
pw: rtoloh
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
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?
Hi @TH8 ,
You want this:
I am referring to clicking the search icon, it will show something like this right?
Please let me know, I will check it.
I could disable search - we only have a small inventory
That is correct. I could disable search, we only have a small inventory
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;
}
}
Fantastic, thanks. I’ll disable search for now.
Hi @TH8 ,
You’re welcome and happy to help ![]()



