Many thanks for the code, but unfortunately it doesn’t work. As I mentioned before I used this code: https://websensepro.com/blog/how-to-show-only-selected-variant-images-shopify-dawn-theme/
So I replaced just the old function filterMedia() in the global.js file (which I had from the website “websensepro.com”) with your new function filterMedia()
Are there any other steps which I can do? Or should I delete all of the original code and just copy&paste your code on the right position?
I hope you can help me.
Thank you in advance
