Shopify themes, liquid, logos, and UX
Hi I would like to change the cart icon size both top right and inside the add to cart button. I tried modifying some CSS code but it doesn't; seem to work. Does anyone have a solution to this problem? Thank you very much for your help!
Store URL: https://inkly.fr/?_ab=0&_fd=0&_sc=1&preview_theme_id=151132897545
Solved! Go to the solution
This is an accepted solution.
@INKLY Please follow the below steps to change the cart icon size for both top right (in header) and inside the add to cart button. Let me know whether it is helpful for you.
.product-form__buttons .icon-cart__container {
vertical-align: middle !important;
display: inline-block !important;
}
.product-form__buttons .icon-cart__container svg {
width: 22px !important;
height: 22px !important;
}
header .header__icons .header__icon--cart svg {
width: 35px !important;
height: 35px !important;
}
Hey @INKLY
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.
<style>
.product-form__submit svg.bi.bi-cart {
top: 3px !important;
position: relative;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Add the code below to the base.css file.
.product-form__buttons .icon-cart__container {
vertical-align: middle;
}
.product-form__buttons .icon-cart__container svg {
width: 25px;
height: 25px;
}
.header__icon, .header__icon--cart .icon {
height: 5.4rem !important;
width: 5.4rem !important;
}
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
This is an accepted solution.
@INKLY Please follow the below steps to change the cart icon size for both top right (in header) and inside the add to cart button. Let me know whether it is helpful for you.
.product-form__buttons .icon-cart__container {
vertical-align: middle !important;
display: inline-block !important;
}
.product-form__buttons .icon-cart__container svg {
width: 22px !important;
height: 22px !important;
}
header .header__icons .header__icon--cart svg {
width: 35px !important;
height: 35px !important;
}
@INKLY Try changing the width and height values from 35px to 40px for the element header .header__icons .header__icon--cart svg like below. Please let me know whether it works.
header .header__icons .header__icon--cart svg {
width: 40px !important;
height: 40px !important;
}
@Vinsinfo When I 'customise' my website from shopify I can see the cart icon even on the mobile version. But when I publish the changes and go on my phone to see if it works. I still see the old default dawn theme cart icon.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025