Search bar does not adapt to screen size? (Dawn)

Search bar does not adapt to screen size? (Dawn)

manbru
Pathfinder
129 0 30

Hello,

 

My search bar does not get smaller when the screen gets smaller, the logo gets behind it and it all looks weird.

my store: https://r1vex.myshopify.com/ 

 

Normal:

Skärmavbild 2024-09-06 kl. 13.34.59.png

 

When i make the screen smaller :

Skärmavbild 2024-09-06 kl. 13.37.50.png

Replies 4 (4)
manbru
Pathfinder
129 0 30

Correct!

BSS-TekLabs
Shopify Partner
2401 695 831

- Here is the solution for you @manbru 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media only screen and (max-width: 1350px) {
input.search__input.field__input {
    width: auto !important;
}
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
manbru
Pathfinder
129 0 30

Thanks for your replay, but i would want the search bars width to gradually become smaller.

 

Here's how it looks now after i've added the code you provided and also an example:

https://imgur.com/a/cKtVOCh 

manbru
Pathfinder
129 0 30

Excuse me have you had time to look att the video in my first reply?