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.
Shopify and our financial partners regularly review and update verification requiremen...
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