Support » Plugins » Cloud Zoom product images not changing over since upgrade to WordPress 4.4

  • Resolved chaduk

    (@chaduk)



    I have recently upgraded to WordPress 4.4 and also have the latest version of Woocommerce (2.4.12). However since upgrading WordPress the Cloud zoom plugin has stopped working properly. It displays the main default image, however when you click on each thumbnail the default image doesn’t switch over. So you basically get the zoom of each thumbnail but the same default image that never changes. Interestingly enough it works properly on safari but not on Chrome and Firefox.. I’ve read up on other similar threads but their solutions have not worked for me. Please assist

Viewing 1 replies (of 1 total)
  • chaduk

    (@chaduk)

    For anyone having the same issue, adding this code to your themes functions.php fixes it:

    add_filter('wp_get_attachment_image_attributes', function($attr) {
        if (isset($attr['sizes'])) unset($attr['sizes']);
        if (isset($attr['srcset'])) unset($attr['srcset']);
        return $attr;
    }, PHP_INT_MAX);
    add_filter('wp_calculate_image_sizes', '__return_false', PHP_INT_MAX);
    add_filter('wp_calculate_image_srcset', '__return_false', PHP_INT_MAX);
    remove_filter('the_content', 'wp_make_content_images_responsive');

    That is until they release an update to cloud zoom to accommodate the WordPress 4.4 changes.

Viewing 1 replies (of 1 total)
  • The topic ‘Cloud Zoom product images not changing over since upgrade to WordPress 4.4’ is closed to new replies.