Problem: (snippets/product-media-gallery line 185): Could not find asset snippets/icon-caret.liquid

Topic summary

Issue: After recent theme changes, product pages on mobile displayed an error: β€œ(snippets/product-media-gallery line 185): Could not find asset snippets/icon-caret.liquid.”

Context: In Shopify, a β€œsnippet” is a reusable template fragment. The product media gallery was referencing a missing snippet (icon-caret.liquid).

Proposed fix (and accepted solution):

  • Go to Shopify Admin β†’ Online Store β†’ Themes β†’ Edit code.
  • In Snippets, create a new snippet named β€œicon-caret”.
  • Insert the appropriate code into the new icon-caret snippet and Save.

Media/attachments: A screenshot of the error and images showing where to add the snippet were provided. A code block placeholder was included, but specific code content was not shown in this thread excerpt.

Outcome: The original poster confirmed the steps resolved the error. Status: Resolved; no further actions needed.

Summarized with AI on December 20. AI used: gpt-5.

I did some modifications to the website recently, including following tutorials to upgrade the site look and i messed up something. When i open the phone website, i see this in my products:

is there a easy way to fix this? i am not really good with code.

1 Like

Hi @HavenNeeds , You can try the following steps:

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Go to snippets β†’ Add a new snippets

Name is icon-caret

Step 3: Insert this code in icon-caret file β†’ Save:


Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

This worked perfectly!

Thank you so much!

1 Like

@HavenNeeds , No problem. Glad to help you :heart_eyes:

1 Like