Hi, i want to use the searchbar i use for my desktop version also for my mobile version.
It should look like this:
Is that possible?
url: https://ba571d-cc.myshopify.com
Dawn theme 15.0.0
Thank you.
A user wants to implement their desktop search bar on the mobile version of their Shopify store (Dawn theme 5.0.0). They provided a screenshot showing the desired mobile layout.
Solution provided:
Another user shared CSS code using a media query for screens under 767px width that:
Outcome:
The CSS solution successfully resolved the issue. The original poster confirmed it’s working as intended.
Hi, i want to use the searchbar i use for my desktop version also for my mobile version.
It should look like this:
Is that possible?
url: https://ba571d-cc.myshopify.com
Dawn theme 15.0.0
Thank you.
Please use this code
@media (max-width: 767px) {
.mobile-search {
display: none !important;
}
.desktop-search {
display: block !important;
}
.header--mobile-left {
grid-template-columns: auto 2fr 4fr !important;
}
.header { padding: 10px 3px !important; }
}
Its working.
Thank you.