Shopify Theme Check

Shopify Theme Check

larsoh2
Shopify Partner
2 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
515 57 109

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
2 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