megait
March 15, 2022, 8:22am
1
I’m having a hard time moving my search bar to the middle. I’ve managed to add a static search bar to my site instead of the pop up and I’ve removed the default search icon but I’m having trouble moving the new search box to the middle of my header. I want the logo to the left, with the search box in the middle between the logo and the account / cart icons. Any advice?
this is what we had in mind:
1 Like
Hello There,
Please share your store URL and password.
So that I will check and let you know the exact solution here.
Hi @megait ,
Please share your store URL and if your store is password protected then please provide password too.
So that we can help you.
Thank you.
megait
March 15, 2022, 8:53am
4
Hi @megait ,
You can follow the instruction below:
Go to Online Store->Theme->Edit code
Asset->/component-predictive-search.css->paste below code at the bottom of the file:
@media (min-width: 992px) {
.header predictive-search {
position: absolute !important;
left: 50%;
transform: translateX(-50%);
top: 30px;
}
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
1 Like
Hello There,
In your Shopify Admin go-to online store > themes > actions > edit code
Find Asset >base.css and paste this at the bottom of the file:
@media (min-width: 992px) {
.header predictive-search {
position: absolute !important;
left: 50%;
transform: translateX(-50%);
top: 30px;
}
}
megait
March 15, 2022, 10:13am
7
Thank you so much! It worked!