Possible Solution for Product Images Duplicating on Mobile Devices
It sounds like the issue might be related to the WooCommerce hover effect or a theme-related conflict. Here’s a step-by-step approach to troubleshoot and hopefully resolve the issue:
- Disable WooCommerce Image Hover Effects:
- Add the following CSS code to your theme’s
Additional CSS
section in the Customizer:
cssCopy code.single-product div.product .woocommerce-product-gallery .flex-control-nav, .single-product div.product .woocommerce-product-gallery__trigger { display: none !important; } .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { pointer-events: none; }
This code disables the hover effect and may prevent the images from duplicating.
- Check for Theme or Plugin Conflicts:
- Temporarily switch to a default WordPress theme like Twenty Twenty-One to see if the issue persists. If the problem disappears, it’s likely a theme conflict.
- Deactivate all plugins except WooCommerce and see if the problem is resolved. If it is, reactivate each plugin one by one to identify the culprit.
- Clear Mobile Cache:
- Clear the cache on your mobile browser to ensure that you’re not seeing a cached version of your site with the issue.
- Test Different Devices/Browsers:
- Test your site on different mobile devices and browsers to see if the issue is consistent across all platforms.
- Responsive Image Settings:
- Ensure that your theme is correctly handling responsive images. Some themes have settings specifically for mobile images, so double-check those.
If these steps don’t resolve the issue, it might be helpful to share more details like the theme you’re using or any customizations you’ve applied, as that can help others provide more targeted advice.