Hi, my header icons on mobile are in the middle and im trying to snap them to the left.
If someone can help me with the code I will be very gratefull.
Thank you.
berez.org.il
password: malul
A user seeks help repositioning mobile header icons from center to left alignment on their Shopify store.
Initial Suggestions:
header.liquid file in theme code.header__icons with display: flex and justify-content: flex-startProblem:
The initial CSS solution didn’t work for the user’s specific setup.
Working Solution:
Another contributor provided targeted CSS for the .mini-cart-icon and .header-search-1 .search-icon classes using:
Outcome:
The issue was resolved. The user confirmed the absolute positioning approach worked and expressed gratitude for the assistance.
Hi, my header icons on mobile are in the middle and im trying to snap them to the left.
If someone can help me with the code I will be very gratefull.
Thank you.
berez.org.il
password: malul
Hello @malul ,
You can try these steps:
{{ 'layout.cart.title' | t }}
{{ 'customer.account.navigation.label' | t }}
.header__icons {
display: flex;
justify-content: flex-start;
}
Hope this can help you out.
Ali Reviews team.
Hi thank you but it didnt work.
The css of the Cart icon is this, do you see a change should be done?
.mini-cart-icon {
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
line-height: 30px;
cursor: pointer;
color: var(--ltn__heading-color); }
@malul add below css into style .css file
@media (max-width:425px)
{
.mini-cart-icon {
position: absolute !important;
top: 35px !important;
left: 45px !important;
}
.header-search-1 .search-icon {
min-width: 25px !important;
text-align: center !important;
font-size: 16px !important;
position: absolute !important;
top: -53px !important;
left: -224px !important;
}
}
thank you very much, appriciate your time.