Shopify themes, liquid, logos, and UX
I have following error shown on top of my website. dont know what caused and how to get rid of it:
Liquid error (layout/theme line 61): Could not find asset snippets/content_for_header.liquid
Always backup themes and files before making changes.
If you need this fixed for you then contact me by mail for services, Contact info in signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail.
Go to your theme.liquid in your code editor and around line 61 there will be something like the following {% render 'content_for_header' %} comment it out {% comment %}{% render 'content_for_header' %}{% endcomment %} or just remove the line.
Optionallly replace with the following {{ content_for_header }} to renable other apps and shopify injected functionality.
If you recently customized your theme, or used an app such as "performance" or "speed" app or uninstalled such an app they probably removed that file from the theme but didn't not clean up references to it.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Hello @Hraz 👋
Inside Shopify Admin, you can go to Edit theme code, open file theme.liquid, find this code
{% include 'content_for_header' %}
and replace with this code
{{ content_for_header }}
Hope that helps!
User | RANK |
---|---|
186 | |
168 | |
78 | |
56 | |
45 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023