We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Tinker Theme - Search Results Not showing correct photo

Tinker Theme - Search Results Not showing correct photo

JulieF
Tourist
5 0 3

When using the new Tinker theme the search results page doesn't show the image for the relevant variant but shows the default image for the listing that contains the variant.  When you click it, it does select the variant automatically but Id like for it to display the relevant variants image on the search results page too... the way it does with Dawn.  Can anyone help with this or point me in the direction of documentation for how to fix it on Tinker?

Reply 1 (1)

askmark
Visitor
1 0 0

I ran into this same issue with Tinker recently  turns out, it's related to how the theme handles predictive-search results and how it maps variant media in the search context. Unlike Dawn, Tinker doesn't automatically bind the correct variant image in the returned JSON or render logic.

The first step is to check the snippets/search-product.liquid file (or wherever your search result item is rendered). What you’ll want to look for is how the product object is passed in by default, it only includes the featured_image or image, not the specific variant that matched the query.

olsew