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

Broken HTML found-message

Broken HTML found-message

PureTime
Explorer
74 2 24

A lot of other people have this issue:

"Broken HTML has been detected in your theme's sections/product-template.liquid file. Check that there are no missing or extra HTML tags present."

I've run the code through chatGPT but no broken syntax is found, so I really have no clue what to fix 😕

Product page example:
https://puretime.dk/products/brolykke-kokkenrulleholder-i-trae-massivt-egetrae-dansk-design

Replies 2 (2)

Vi-WizzCommerce
Shopify Partner
236 9 28

Goddag @PureTime !

 

Sorry to hear about your issue! Here’s what’s likely happening:

 

1. The error often comes from product description content

Shopify flags “Broken HTML” when there’s unclosed or mismatched tags in your product descriptions—not merely your theme files. Even if your .liquid code seems fine, the HTML inside the WYSIWYG product description editor can cause issues

What to try:

  1. In Shopify Admin, go to your product page and open the “<>” source view in the rich‑text editor.

  2. Remove or rewrite any suspicious HTML (e.g. unclosed <div>, <span>, <p> tags).

  3. To be safe, Ctrl/Cmd + Shift + V–paste plain text.

  4. Save and test again.

2. Validate your theme’s Liquid sections with HTMLHint

Even small typos in product-template.liquid—like an extra <div> or missing </li>—can trigger the error.

Pro tip:

  • Copy the code from sections/product-template.liquid and paste it into HTMLHint to catch mismatched tags.

  • Fix any issues reported, then re-save the file in Shopify.

3. Zoom in on newly added custom snippets

If you recently included snippets or added new markup, isolate them:

  • Temporarily comment out which blocks you’ve added.

  • Test until the error disappears.

  • Focus your fix on that snippet’s HTML structure.

Once you’ve fixed either the product description HTML or the theme section snippet, re-save both and retry. That’ll almost always clear the “Broken HTML” alert.

 

Held og lykke!

 

If this reply was useful to you, we would really appreciate it if you gave us a LIKE and mark the issue as SOLVED!

Check here Wizzcommerce Apps to optimize your store: Snap Presale & Backorder | SnapNoti FOMO Visitor Counter | SnapBundle Volume Discounts | Wizz Flash Sale & Price Edit | BOGO+ | Buy X Get Y Free Gift | Snap Cart Drawer & Cart Upsell
Find more support, feel free to contact: support@wizzcommerce.io
PureTime
Explorer
74 2 24

I have been through it.

I hoped someone could see an obvious error as I don't see any parts missing of the obvious missing close tags etc.

I did look at HTMLHint but to me it seems something I have to run on my own machine and I'm not really that technical.

So I used other editors as well as ChatGPT which are quite good at syntax and nothing came up.