I keep getting this error when I add a section or block to a PRODUCT PAGE, what can I do to resolve it? Translation of error to english:
“The ‘content’ setting cannot contain Liquid syntax (‘{{’, ‘}}’, ‘{%’ or ‘%}’) without valid dynamic sources.” Why does it appear and how can I fix it?
URL: Glow Curtain: 400 LED Lights for a Magical Ambiance – InteriorGlows
Hello,
This error happens because Shopify’s new theme architecture (Online Store 2.0) is stricter about Liquid syntax inside content settings. Basically, Shopify doesn’t allow using {{ }} or {% %} directly in a text field for dynamic content anymore, unless it references a valid dynamic source.
If you were doing something like this in your section settings:
“content”: “{{ product.title }}”
You can change it to this:
{{ product.title }}
1 Like
Hello @irene-vintage , thanks for the respond! I’ve been looking for it in my files by searching ctrl+f “content” but I haven’t managed to found the problem. Can I somehow check in which file the problem is?
Hello @TrendBlend , if nothing comes up, you can try and search for {{ or {% since error Liquid code starts like that.
1 Like