change default picture instead of being a variant

Topic summary

A user working with the Ride theme wants to display the product’s default image first, rather than having the first variant’s image take priority. They’ve tried existing solutions from forum posts, but one method causes the default image to duplicate.

Proposed Solution:
Another user suggests adding a code snippet to the theme file that loops through product images and checks for the selected variant’s featured image.

Implementation Issues:

  • The original poster is uncertain where to place the code (asks if it goes in theme.liquid)
  • After attempting to add it, the main product image disappears entirely

Current Status:
The thread remains unresolved. Two years later, another user encounters the same problem and expresses frustration at the lack of working solutions, considering switching themes instead.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hello

Just wanting to see if any one knows how to make the default picture be the first instead of the first variant. I am using the Ride theme and its been updated.

I have tried many of the other methods I have found on these boards and one works but doubles up on the default picture.

Thank you

Add this code in theme file


  {% for image in product.images %}
    {% if image == product.selected_or_first_available_variant.featured_image %}
      

        
      

    {% endif %}
  {% endfor %}

Thank you for your reply.

Do I just add this to the bottom of the theme.liquid file?

I ended up adding it and the main image (the bigger image) disappeared.

2 years later and no one has a solution for you? I can’t find a proper solution anywhere online. I’m thinking of just changing the theme at this point.