Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
When I downloaded App name PageFly. (I think it have some connect with it because when i uninstall it, some of assets are still here.) I wanted to hide cart icon so I started to deleting some of assets. It's telling me there's a problem. I found where is the problem in website but I cannot find it in code in Shopify. When I deleted it in Google explorer, it was ok.
This showing me up right now on my website:
Liquid error (sections/header line 725): Could not find asset snippets/icon-cart-empty.liquid
Anyone help please ? I will be so grateful!
Solved! Go to the solution
This is an accepted solution.
The error message you're encountering indicates that there is a problem with the header
section in your Shopify theme's Liquid code. Specifically, it mentions an issue on line 725 related to the asset snippet icon-cart-empty.liquid
.
To address this issue, you can follow these steps:
From your Shopify admin, go to Online Store > Themes.
Find the theme you're currently using and click on the "Actions" button.
Select "Edit code" from the dropdown menu to access the theme's code editor.
In the code editor, navigate to the sections
directory and locate the header.liquid
file.
Open the header.liquid
file and go to line 725 to find the problematic code related to the icon-cart-empty
asset snippet.
Either remove or modify the code causing the issue. If you want to hide the cart icon, you can comment out the code by adding {% comment %}
at the beginning and {% endcomment %}
at the end of the code block. For example:
{% comment %}
{% include 'icon-cart-empty' %}
{% endcomment %}
Hi @Lucas00000 ,
I can help you with this. But for that, I need to check your theme code to solve this error.
How can I give you access ? Do you mean that I need to give you access on my Shopify Store to edit theme code ?
Or do you need some of screenshots for it ?
This is an accepted solution.
The error message you're encountering indicates that there is a problem with the header
section in your Shopify theme's Liquid code. Specifically, it mentions an issue on line 725 related to the asset snippet icon-cart-empty.liquid
.
To address this issue, you can follow these steps:
From your Shopify admin, go to Online Store > Themes.
Find the theme you're currently using and click on the "Actions" button.
Select "Edit code" from the dropdown menu to access the theme's code editor.
In the code editor, navigate to the sections
directory and locate the header.liquid
file.
Open the header.liquid
file and go to line 725 to find the problematic code related to the icon-cart-empty
asset snippet.
Either remove or modify the code causing the issue. If you want to hide the cart icon, you can comment out the code by adding {% comment %}
at the beginning and {% endcomment %}
at the end of the code block. For example:
{% comment %}
{% include 'icon-cart-empty' %}
{% endcomment %}
Hi, its such a helpful tip but where I need to paste this code ?
"Thank you so much for providing the correct solution with clear step-by-step guidance! Your detailed explanation made everything easy to understand, and I truly appreciate your help."
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