I am using Impact theme for my store. I have different images for all colors and sizes variants. I want when user click on brown and 11*7 size it will show only that size and color images .I tried many thing but nothing works for me. I have 4 different images for each size and color.
But this needs to be hard coded in the theme using theme’s default code. Thus I would recommend you to seek help from a developer at reasonable cost to set this up in your store.
Thank you. In my theme alt text is working but the thing is it’s only work for color variant but I want same thing for both color and size variant it is impossible for both variants using alt text?
It is not impossible, but no theme give this facility to group image with two variant option, but here alt can be designed in such way that it uses both the selected variant options, this will need tweaks with Liquid and JS both.
Thank you. I tried this but when I give common div class but it’s take separately for all the buttons not able to give common div for all the buttons. Can you please tell me how do I give common class for all three buttons.
liquid code for color button:
Hi @vishwa312 I hope you already solved this problem for your shop. I would like to share the solution for people coming from search.
We have built Rubik app to solve the problem of displaying only images of selected variants even if you use multiple options like color and size and need to attach images to each combination of these selections. I also recorded video and explained how it works. With this solution you don’t have to touch alt_text of images which should be used for SEO purposes only.