Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Shopify Theme Check

Shopify Theme Check

larsoh2
Shopify Partner
3 0 0

I'm running "shopify theme check" in terminal and receiving an error that states "[error]: LiquidHTMLSyntaxError

  Attempting to close HtmlElement 'div' before it was opened". I have verified that all tags are closed properly. There are several if statments that generate opening <div> tags. Has anyone run into this issue before? 

Replies 2 (2)

SomeUsernameHe
Shopify Partner
522 58 115

Double check. Triple check. Quadruple check. Then have AI check... But you probably missing a closing div somewhere. 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
larsoh2
Shopify Partner
3 0 0

That was my first thought too. So I've checked 10 times and see no issue with the code. Asked AI and it confirmed there was no missing div tag