Shopify themes, liquid, logos, and UX
How to make search bar full width and center the menu? (dawn theme). I would like to center the navigation menu and make the search bar full-width. Please refer to the attached image for reference.
Solved! Go to the solution
This is an accepted solution.
@media screen and (min-width: 990px) {
.header:not(.header--middle-left,.header--middle-center) .header__inline-menu {
margin-top: 1.05rem;
display: flex !important;
justify-content: center;
}
}
) Go to Online Store
2) Edit Code
3) Find base.css file
4) Add the following code in the bottom
Hello!
Please share "Store URL".
Thanks.
Hi
This URL need password for further process
Please use below password:
eashal
1) Go to Online Store
2) Edit Code
3) Find base.css file
4) Add the following code in the bottom
.search__input.field__input {
padding-right: 9.8rem;
width: 100vh;
}
// Center align menu bar //
.header__inline-menu {
margin-top: 1.05rem;
display: flex;
justify-content: center;
}
Thanks
Hi there!
header search bar is now full width but the dropdown seems off.
Also, inline menu code didn't work.
I already fixed the dropdown issue by adding the following code:
predictive-search[open] .predictive-search {
position: absolute;
min-width: 768px;
left: unset;
transform: translateX(0%);
The last issue is with the menu—how can I center it?
Appreciate your help!
This is an accepted solution.
@media screen and (min-width: 990px) {
.header:not(.header--middle-left,.header--middle-center) .header__inline-menu {
margin-top: 1.05rem;
display: flex !important;
justify-content: center;
}
}
) Go to Online Store
2) Edit Code
3) Find base.css file
4) Add the following code in the bottom
This works!
I appreciate your help! Thank you so much!
Hi Shekinah!
I look forward to your feedback and suggestions on how to improve it.
Hi
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
.list-menu--inline {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
Save Changes.
If my reply is helpful, kindly click like and mark it as an accepted solution.
It didn't work—did I miss something?
Please add this code at the bottom ( base.css file )
I hope this work for you
This works as well!
I appreciate your help! Thank you so much!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024