Hi guys,
Client wants all current items to fit on one line for the nav menu. I have tried editing CSS but for some reason I am not seeing the changes reflected. Here is the preview for the site, all help is appreciated in advance thank you!
A user needs help fitting all navigation menu items on a single line in their Shopify store header. CSS edits aren’t reflecting changes on the preview site.
Multiple solutions proposed:
Modify flex-wrap property: Change flex-wrap: wrap to flex-wrap: nowrap in the .list-menu--inline class, either in header.liquid or CSS files. Add white-space: nowrap to prevent text wrapping.
Adjust header width: Set header.header to max-width: 100% or max-width: unset !important in base.css, style.css, or theme.css files.
Combined approach: Apply both flex-wrap changes and header width adjustments together, wrapped in a media query for screens wider than 769px.
All respondents provided code snippets and screenshots showing the navigation items successfully displayed on one line. The issue remains unresolved as the original poster hasn’t confirmed which solution worked.
Hi guys,
Client wants all current items to fit on one line for the nav menu. I have tried editing CSS but for some reason I am not seeing the changes reflected. Here is the preview for the site, all help is appreciated in advance thank you!
Hi @jcovo ,
Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.
@media (min-width: 769px){
.list-menu--inline {
display: inline-flex;
flex-wrap: nowrap;
white-space: pre;
}
header.header {
max-width: 100% !important;
}
}
Hello @jcovo
Follow this steps:
1.Go to edit tab
.list-menu--inline {
display: inline-flex;
flex-wrap: wrap;
}
.list-menu--inline {
display: inline-flex;
flex-wrap: nowrap;
white-space: nowrap;
}
Result:
Hi @jcovo
You can make max-width so it will fit.
header.header {
max-width: 100%;
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @jcovo
I hope you are well. You can follow our instructions below:1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for “theme.liquid” file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for tag and add the following code above tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
header.header {
max-width: unset !important;
}
{% endstyle %}
Please let me know if it works. Thank you!Best,
Daisy - Avada Support Team