Shopify themes, liquid, logos, and UX
Hello,
I'm trying to get my search bar to look like the one in picture 2. I've used the code in this post: Open search bar instead of icon in the header of dawn to get the search bar, but inside that code I can't find any way to adjust the height of the bar.
Here's my store: https://r1vex.myshopify.com/
pass: 1
Thanks for the help!
currently 1:
2:
Hey @manbru
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
header.header.header--middle-left.header--mobile-center.page-width.drawer-menu.header--has-menu {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @manbru
Please add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code
<style>
@media (min-width: 990px) {
.header-wrapper .header {
padding-top: 0;
padding-bottom: 0;
}
.header-wrapper .desktop-search .field__input {
height: 61px;
}
.header-wrapper .desktop-search .field:before,
.header-wrapper .desktop-search .field:after {
box-shadow: unset;
border: unset;
}
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Thank you! how do i make "sök" and the icon centred now?
I fixed it, if anyone want's the code here:
paste under <head> in theme.liquid
<style>
@media (min-width: 990px) {
.header-wrapper .header {
padding-top: 0;
padding-bottom: 0;
}
.header-wrapper .desktop-search .field__input {
height: 61px;
display: flex; /* Använder flexbox */
align-items: center; /* Centrerar innehållet vertikalt */
justify-content: center; /* Centrerar innehållet horisontellt */
position: relative; /* Ger oss positionell kontroll */
}
.header-wrapper .desktop-search .field__label {
position: absolute; /* Absolut positionering för labeln */
top: 50%; /* Placera labeln vertikalt mitt i fältet */
transform: translateY(-50%); /* Justera labeln tillbaka uppåt med hälften av sin egen höjd */
}
.header-wrapper .desktop-search .field__button {
position: absolute; /* Absolut positionering för knappen */
top: 50%; /* Placera knappen vertikalt mitt i fältet */
transform: translateY(-50%); /* Justera knappen tillbaka uppåt med hälften av sin egen höjd */
right: 10px; /* Justera knappen lite till höger */
}
.header-wrapper .desktop-search .field:before,
.header-wrapper .desktop-search .field:after {
box-shadow: unset;
border: unset;
}
}
</style>
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025