Shopify themes, liquid, logos, and UX
Hi,I changed the cart icon to a custom one. but it seems to only render on desktop but not on mobiles. Does anyone know the solution to this problem? Thank you very much for your help !
Wesite URL: https://inkly.fr/
Solved! Go to the solution
This is an accepted solution.
Hi there,
In the theme code, go to the 'icon-cart.liquid' and 'icon-cart-empty.liquid' and replace the SVG code. This should do the trick! Keep in mind that you have a different icon for an empty and a filled cart.
This is an accepted solution.
Hi there,
In the theme code, go to the 'icon-cart.liquid' and 'icon-cart-empty.liquid' and replace the SVG code. This should do the trick! Keep in mind that you have a different icon for an empty and a filled cart.
@ThomKnepper Thank you! I was aware of the different icon for an empty and a filled cart!
Hi, @INKLY
From my perspective, the desktop icon has not changed either.
Hi @INKLY
In header.liquide there are two type of icon
if cart == empty
render 'icon-cart-empty'
else
render 'icon-cart'
endif
one is for empty card another is with card. You have changed the item in cart icon 🙂 You need to change other one also.
It will solve your issues.
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025