How do I fix a SyntaxError in theme.liquid file?

Topic summary

Issue: A Liquid/HTML syntax error is flagged in theme.liquid by theme-check at line 523, column 126: “SyntaxError: expected </”. This typically indicates a missing or malformed closing HTML tag within a Liquid/HTML template.

Context: The original poster cannot locate the exact mistake despite the reported position.

Guidance/Next steps:

  • Review line 523 (and surrounding lines) for an unclosed tag or mismatched tag names.
  • Provide a screenshot of line 523 or share the store/page URL so others can inspect and give precise advice.

Status: No fix confirmed yet; assistance pending additional details from the original poster.

Summarized with AI on January 4. AI used: gpt-5.

Hi All,

For the life of me, I cannot find this Syntax Error that is getting flagged on the theme.liquid file.

[{
“code”: “LiquidHTMLSyntaxError”,
“severity”: 8,
“message”: “SyntaxError: expected "</"”,
“source”: “theme-check”,
“startLineNumber”: 523,
“startColumn”: 126,
“endLineNumber”: 523,
“endColumn”: 126
}]

Could somone kindly point me to the issue?

Thanks!

It stated the error location, check the theme.liquid file of your store.

if you can provide the screenshot for line 523 we might get you better answer or the url for your store.