How can I eliminate the '2nd image' button on single image products?

Topic summary

A store owner reports that products with only one image display a non-functional “2nd image” button that does nothing when clicked.

Issue Details:

  • The button appears on all single-image products
  • Clicking it produces no result since no second image exists
  • A screenshot was attached showing the problem

Current Status:

  • The issue remains unresolved and under investigation
  • Two community members have offered assistance
  • Both responders requested the store URL (and password if applicable) to examine the code and identify a solution
  • The original poster suspects the fix involves modifying the theme code
Summarized with AI on November 25. AI used: claude-sonnet-4-5-20250929.

Some of my products only have 1 product image. However all of my 1 image products have a “2nd image” button that is clickable and does nothing (because there’s no 2nd image)

How can I remove this button from products with only 1 image attached? *I’m guessing the answer is in the code :disappointed_face:

1 Like

@Kooler24

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

@Kooler24

Could you share your store URL and the store password (if any)? Then I can review it