I’m using Dawn version 15.4.0, and on the mobile header, my search icon is currently on the right side, but I want it to appear on the left side, right next to the hamburger menu icon where it normally should be.
Does anyone know how I can move the search icon to the left on mobile only?
Also, is there a way to push all mobile header icons (search, account, cart) more toward the edges of the screen? At the moment they sit too close to my logo, and I’d like to create better spacing by moving them toward the screen corners.
Any help or CSS guidance would be really appreciated!
To move the search icon to the left, try putting the below code in your base. CSS file from your theme edit code option. Put this code at the end of the base.css file.
@media (max-width: 768px) {
.header-wrapper .header__heading-link {
padding-left: 48px; /* Adjust logo position */
}
.header__icons .header__icon--search {
position: absolute;
left: 60px; /* Adjust this value as needed for alignment */
}
}
You can change the value of the left-side pixel to make the adjustment according to your need.