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
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.
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!