After investigating, it appears that the issue is related to the variation swatches plugin you are using. Unfortunately, our custom gallery is not compatible with this plugin.
However, you can revert back to using the WooCommerce gallery, which is compatible with your variation swatches plugin. To do this, please add the following code snippet to your theme's functions.php file:
I think you misunderstood me. The code that I've sent you should be added in functions.php of the theme (preferably child theme) and it will use the default gallery from WooCommerce which will be compatible with the Variation Swatches.
If you don't know how to do it I can insert it for you but I need your WP credentials.
To include your credentials click Insert Credentials button in editor toolbar. (See how)
See attachment 1.png. On mobile: Second and all next product photos are cropped and low quality. It seems it's shows thumbnail picture instead of proper large size image.
2. On desktop: Second and all next product photos are low quality. Animation transition feature between photos is gone.
still not answered:
See attachment 2.png. This block appears on a mobile.I don't need it neither on mobile or desktop.
Hi.
Issue: product photo does not update when a customer is changing a variant.
-I have turned off all Custom CSS, Additional CSS, All Snippets and plugins. Still same issue.
-There is no issue when theme is turned off.
- Tried to create new product from scratch. Same issue
Please see the images.
Attached files: FLOA73_product_photo_update.JPG
FLOA74_product_photo_update.JPG
Hi,
After investigating, it appears that the issue is related to the variation swatches plugin you are using. Unfortunately, our custom gallery is not compatible with this plugin.
However, you can revert back to using the WooCommerce gallery, which is compatible with your variation swatches plugin. To do this, please add the following code snippet to your theme's functions.php file:
This will disable our custom gallery layout and enable the default WooCommerce gallery, resolving the compatibility issue.
Please let us know if this resolves your issue or if you have any further questions.
Hi,
I have turned off variation swatches plugin and the issue is still there.
I have also added your php line in functions.php - no effect.
So plugin is not the issue.
I have tried to turn off ALL PLUGINS except woocommerce. The issue is still there.
I find out, that it works only on ONE product, only on HALF of the variations:
https://floadesign.com/product/levis-denim/
Attached files: FLOA76.JPG
FLOA77.JPG
Hi floa2,
I think you misunderstood me. The code that I've sent you should be added in functions.php of the theme (preferably child theme) and it will use the default gallery from WooCommerce which will be compatible with the Variation Swatches.
If you don't know how to do it I can insert it for you but I need your WP credentials.
To include your credentials click Insert Credentials button in editor toolbar. (See how)
Hi,
I have added the priority on the hook and it turned to work:
https://d.pr/v/HAeOYP
So now dropdowns are unnecessary:
(view large image)
So I have removed with this CSS in Custom CSS:
Right now the gallery looks like this:

If you don't want carousel gallery (default WooCommerce) I have added a code in functions, so you can uncomment the last line in functions.php(view large image)
See how it works:
https://d.pr/v/DWrkLD
Hopefully this works fine for you.
Thanks - works great on computer.. However it created an issue on mobile...
Now all product photos are stacked vertically on mobile.
It should stay as it was before: one photo, which one could slide to left and right.
Hi,
I am glad to hear that.
In order to have carousel enabled on mobile screen it should be done using CSS, so I have disabled the previous line in functions.php
(view large image)
And added this code in Custom CSS:
hi,
2 things happened after your latest change:
1. See attachment 1.png. On desktop, changing product variant, switches image to a black color. It wasn't like this before.
2. See attachment 2.png. This block now appears on a mobile. I don't need it neither on mobile or desktop.
Please address these 2 issues.
Attached files: 2.png
1.png
Hi,
I have added this code in functions.php which will conditionally enable carousel on mobile devices:
https://d.pr/n/mdteIS
Please note that the script will work only on page load so for example if viewport is 768 and smaller when page loads, the carousel will init.
See the example:
https://d.pr/v/s52Dc5
Hi,
2 things happened after your latest change:
See attachment 1.png. On mobile: Second and all next product photos are cropped and low quality. It seems it's shows thumbnail picture instead of proper large size image.
2. On desktop: Second and all next product photos are low quality. Animation transition feature between photos is gone.
still not answered:
See attachment 2.png. This block appears on a mobile. I don't need it neither on mobile or desktop.
Please address these 3 issues.
Attached files: FLOA_1.JPG
FLOA_2.JPG
Hi,
I have made the desired adjustments which now I believe it fulfills your request, here is what I have done:
1. Hide the product carousel thumbnails with Custom CSS:
2. Adjusted the code in functions.php to this one:
(view large image)
So now the quality of gallery images is the same for all images, they show as carousel on mobile devices and stacked on desktop.
Hopefully this will work fine for you.