Resolving Erroneous Text Display Under Image Banners in Shopify Theme

Topic summary

A Shopify store owner reports unexpected text appearing under all images: `\

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hello Shopify Experts,

I’ve recently encountered an issue with my Shopify theme where a string of text is unexpectedly appearing under each of the pictures on my site. The text reads: “templates”: [“I”, “product”, “page”]. This issue surfaced after I made some code adjustments to add blocks and sections, despite having resolved the initial problems.

Specifics of the Issue:

  • The text appears directly under every image on various pages of my site.
  • Shopify support is saying this issue seems to having a high volume of existing code?

I am looking for guidance on how to locate and resolve this issue. If anyone has experienced something similar or can offer insight into what might be causing this text to appear and how to remove it, I would greatly appreciate your assistance.

my website is: shoplibrastudio.com

Hi @shoplibrastudio ,

You can try the following solution:

In the Online store, select Themes → … → Edit code

Please add the following code before the tag

<script>
      var cNodes = document.querySelector('#shopify-section-template--21738484236562__e09c2927-0530-4d43-8aa8-cdea5e6f8822').childNodes;
      if(cNodes.length>0) cNodes[cNodes.length-1].nodeValue="";
    </script>

Click Save to save changes.

However, this is only a temporary solution. To better solve the problem, do the following:

If you edit code, you probably accidentally added the line “templates”: [“I”, “product”, “page”] into a certain file. Find the file where you changed the code. Press Ctrl + F and enter “templates”: [“I”, “product”, “page”]. Delete this text if it is not in any html tag.

For example:

Hope it helps @shoplibrastudio