Search icon move to the left

Solved

Search icon move to the left

TBS2023
Shopify Partner
274 1 30

Hello

How can i move my search icon to the left and have it underlined like this

TBS2023_0-1741948843017.png

 

www.thebodyshop.ca

datsau

 

Accepted Solution (1)

Michael-Thomas
Shopify Partner
53 10 8

This is an accepted solution.

Hi @TBS2023 

 

Try adding this CSS under header > custom CSS

 

@media (min-width: 768px) {
  .header__desktop__upper {
    position: relative;
  }

  .header__desktop__button:has([aria-label="Search"]) {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header__desktop__bar__c {
    margin: 0 auto;
  }

  .header__desktop__buttons--icons {
    margin-left: auto;
  }
}

 

I hope that helps. 

Found this helpful? Please Like & Mark as Solution — I truly appreciate it!
Connect with me | Get a Shopify Store with an Unlimited Free Trial – No Credit Card Needed! | ❤️ Support my work, If You’d Like!

View solution in original post

Replies 4 (4)

ennovative-it
Shopify Partner
147 20 18

Hello, what is the password of your store?

instagram: e.nnovative
info@ennovative.it
collab@ennovative.it
TBS2023
Shopify Partner
274 1 30

Michael-Thomas
Shopify Partner
53 10 8

This is an accepted solution.

Hi @TBS2023 

 

Try adding this CSS under header > custom CSS

 

@media (min-width: 768px) {
  .header__desktop__upper {
    position: relative;
  }

  .header__desktop__button:has([aria-label="Search"]) {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header__desktop__bar__c {
    margin: 0 auto;
  }

  .header__desktop__buttons--icons {
    margin-left: auto;
  }
}

 

I hope that helps. 

Found this helpful? Please Like & Mark as Solution — I truly appreciate it!
Connect with me | Get a Shopify Store with an Unlimited Free Trial – No Credit Card Needed! | ❤️ Support my work, If You’d Like!

TBS2023
Shopify Partner
274 1 30

Please can you have a look at the mobile version 

It has gone all wrong - how can i apply this only to desktop?