Reposition search box On Mobile (Dawn Theme)

Solved
Loz86
Excursionist
40 1 5

Store url: onlinebeautyessentials.com

Just need to center the search box that opens on mobile and move it up so it opens directly under the header.

Like this..

Loz86_0-1699479973522.png

 

 

Accepted Solution (1)
Abdosamer
Shopify Partner
473 78 73

This is an accepted solution.

Hi @Loz86 , we will change some css code to do that go to base.css and search for this piece of code : 

@media screen and (max-width: 989px) {
details-modal.header__search {
    position: absolute;
    left: 80px;
}
details[open]>.search-modal {
    top: 90px;
    width: calc(100vw - 55px);
    margin: 0px auto;
    left: -50px;
}
}

you will need to change two properties the top and width like this: 

details[open]>.search-modal {
top: 5.5rem;
width: 100vw;
margin: 0px auto;
left: -50px;
} 
Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp

View solution in original post

Replies 3 (3)
Abdosamer
Shopify Partner
473 78 73

This is an accepted solution.

Hi @Loz86 , we will change some css code to do that go to base.css and search for this piece of code : 

@media screen and (max-width: 989px) {
details-modal.header__search {
    position: absolute;
    left: 80px;
}
details[open]>.search-modal {
    top: 90px;
    width: calc(100vw - 55px);
    margin: 0px auto;
    left: -50px;
}
}

you will need to change two properties the top and width like this: 

details[open]>.search-modal {
top: 5.5rem;
width: 100vw;
margin: 0px auto;
left: -50px;
} 
Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp
Loz86
Excursionist
40 1 5

Thanks Abdosamer,

Just bought you a coffee 👍

 



Abdosamer
Shopify Partner
473 78 73

Thanks, feel free to contact me anytime if you need help.

Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp