Mobile Header: Search Bar Icon Misalignment Adjustment

Solved

Mobile Header: Search Bar Icon Misalignment Adjustment

crepscity
Explorer
91 0 22

Hi there,

 

On mobile version only the search bar icon in the header is positioned slightly lower than the other icons and elements, creating a misalignment. This needs to be adjusted so that the icon aligns evenly with the surrounding components.

 

the dawn theme 15.2.0 is not published yet and is currently on my editor labeled 'Latest Version Of Dawn Theme 15.2.0 IN PROGRESS'

 

Screenshot 2025-02-15 at 20.46.40.pngScreenshot 2025-02-15 at 20.52.05.png

 
 
Accepted Solution (1)

B2Bridge
Excursionist
332 66 83

This is an accepted solution.

Hi @crepscity, please follow these steps:

Step 1: Open Online Store -> Themes -> Edit code.

Step 2: Find base.css file

Step 3: Paste this code at the bottom of the file.

@media screen and (max-width: 749px) {
    details-modal.header__search .header__icon--search {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
}

If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

View solution in original post

Replies 7 (7)

Made4uo-Ribe
Shopify Partner
10036 2387 3013

Hi @crepscity 

Please, share the preview of your theme. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
crepscity
Explorer
91 0 22

Sure.

IMG_0092.jpegIMG_0094.jpeg

LizHoang
Shopify Partner
1250 158 196

Hi @crepscity 

Can you share the preview store url of your theme? Thanks!

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
crepscity
Explorer
91 0 22

Hi Liz,

 

bare in mind the issue is for mobile version.

 

https://crepscity.com/?_ab=0&_fd=0&_sc=1

LizHoang
Shopify Partner
1250 158 196

Hi @crepscity,

 

Since the theme has not been published yet, I am unable to check its functionality. In this case, the theme needs to be published first so I can properly test and provide you with a suitable solution. 

 

Liz

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

B2Bridge
Excursionist
332 66 83

This is an accepted solution.

Hi @crepscity, please follow these steps:

Step 1: Open Online Store -> Themes -> Edit code.

Step 2: Find base.css file

Step 3: Paste this code at the bottom of the file.

@media screen and (max-width: 749px) {
    details-modal.header__search .header__icon--search {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
}

If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

crepscity
Explorer
91 0 22

Hi B2Bridge,

 

Thank you, that worked! By the way, do you know how I can move the login icon from the menu to the header, next to the cart icon on the left side? Also, the background of the menu is currently white—how can I change it to black without affecting the background of other pages?

 

Screenshot 2025-03-01 at 15.45.04.png