how do I fix this code : attempting to close liquidate 'capture' before HTMLelement body was closed

Paumlndz
Visitor
2 0 0

Hello 

 

I have a problem on my theme liquid and I would like to know how to fix it. 

 

Error : attempting to close liquidate 'capture' before HTMLelement body was closed 

 

Is it possible to help me?

Paumlndz_0-1696098673259.png

Paumlndz_1-1696099001318.png

 

 

Reply 1 (1)
PaulNewton
Shopify Partner
5931 537 1241

Did you use some sort of "optimization" service or app?

The screenshots do not show the starting code, there should be an opening {% capture %} tag somewhere before line ~52 if not that may be the problem remove the {% endcapture %} on line ~77

; however it looks like the code is really janky and trying to capture the output html in a weird way generally the  {% capture %}  and {% endcapture %}  should happen before the <body> and after the </body> tags respectively.

 

If you need this debugged and fixed then contact me directly by mail for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.

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