Liquid error

Topic summary

Theme code changes caused a templating (“Liquid”) error in a Shopify store after attempting a fix. The issue is likely within the Snippets folder file: product-thumbnail.liquid.

Key guidance:

  • Check line 26 for correct comment syntax, specifically ensuring the tag “{% endcomment %}” is present. A screenshot of line 26 was requested to identify what’s missing.
  • Revert product-thumbnail.liquid to its original version if possible.
  • Compare the file against Shopify’s Dawn theme reference (GitHub) around lines 28–46 to restore correct structure.

Support offered:

  • One contributor volunteered to fix the code directly and provided an email to gain theme code access.

Latest update:

  • The store owner asked how to grant access to the helper.

Status:

  • No resolution yet. Next actions are to either revert/compare the product-thumbnail.liquid file or grant temporary theme access and share the requested code screenshot.

Notes:

  • Screenshots were referenced to diagnose the exact line of code; they are helpful for pinpointing the error.
Summarized with AI on December 15. AI used: gpt-5.

Hi,

I was trying to fix an issues I was having and somehow messed up my codes and I can’t figured out how to fix it. I tried reverting but I don’t know which section I may have touched.

Any help or advice would be appreciated.

Thanks,
Martie

1 Like

Hi @Smartie1

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

  2. Find the theme that you edit and click on “Actions” and then “Edit code”.

  3. In the “Snippets” folder, find the Product thumbnail folder. When you open it find the line 26.

  4. Then take a SS on the line 26, so we know what is missing. Here is my SS from the dawn theme.

  5. the line 26 is with the

{% endcomment %}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hello @Smartie1 ,

You need to revert the code of file snippets → product-thumbnail.liquid

Thanks

1 Like

I believe this is the area which you’ve changed:

https://github.com/Shopify/dawn/blob/main/snippets/product-thumbnail.liquid#L28-L46

1 Like

Hi @Smartie1

It seems that there are errors in file product-thumbnail.liquid.

If possible to grant me access to your Edit theme code, I can assist in resolving the issue.

Here is the email: anivia@avadagroup.com

Look forward to your response.

Best,

Daisy

1 Like

hey, how do i give you access?

Thank you very much btw