I would like to know how to reduce the size of the icons in my header ONLY on the mobile version of my site. Thanks
Hi @ciandastudio , can you share your store url?
www.hillscollide.com
hcvisitor
@ciandastudio , go to base.css and add the following
@media (max-width:768px){
.header__icon .icon {
width: 1.5rem !important;
}
}
code:
Hi @ciandastudio ,
To make icon smaller in mobile
Here is the code
@media only screen and (max-width: 970px){
.header__icon .icon {
width: 1.5rem;
}
.header__icon--cart .icon {
height: 3.4rem;
}
}
Paste this code in base.css
Hope this code will work.
Best Regards
Team_OSC
no luck unfortunately
this didnβt work unfortunately, did you have any other suggestions?
You can paste this code in base.css
@media only screen and (max-width: 970px){
.header__icon .icon {
width: 1.8rem;
}
.header__icon--cart .icon-cart-empty {
height: 3.4rem;
}
}
After this
-
Go to Assets
-
Search icon-cart-empty.liquid
-
There is a class using with name icon
-
Remove that class name from svg
-
Then Save it and refresh the page to see the changes.
Hope this code will work.
Best Regards,
Team_OSC
@ciandastudio , I donβt see the code I provided you in base.css
Hello @ciandastudio ,
Please follow the below mentioned steps to reduce the size of the header icon.
Steps -:
-
Go to Online Store β Themes β Click on Three dots(Action) β Edit code.
-
Search for the theme.liquid file and open it.
-
Next add the below mentioned code at the bottom of the theme.liquid file before tag.
- Save
After implementing code, output will look like this β https://prnt.sc/TwfEwrn6tCdK
I hope the code helps you.
Please let me know if you have any query or need any assistance.
Thank you.
Thankyou, I will try that
Can the menu icon also be reduced to the same size?
Thankyou, I will try that
Can the menu icon also be reduced to the same size?
Hello @ciandastudio ,
Yes, it can be possible.
Please add the below mentioned code in your theme.liquid file (You have to follow the previously shared steps for adding the code)
@media (max-width:430px) { svg.icon.icon-hamburger { height: 3.4rem; width: 1.4rem; } }Output β https://prnt.sc/0X3YtZkkgJT3
I hope it helps.
Please let me know if you have any query.
Thank you.
