Hello
How can i move my search icon to the left and have it underlined like this
datsau
A user wants to reposition their store’s search icon to the left side of the header and add an underline, referencing The Body Shop Canada’s design as an example.
Progress:
.header__desktop__button and repositions it within .header__desktop__upperCurrent Issue:
Status: Unresolved - awaiting guidance on restricting the CSS to desktop-only or fixing the mobile display issue. Note that the provided code already includes a @media (min-width: 768px) query, suggesting the mobile problem may require additional investigation.
Hello
How can i move my search icon to the left and have it underlined like this
datsau
Hello, what is the password of your store?
datsau
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.
Please can you have a look at the mobile version
It has gone all wrong - how can i apply this only to desktop?