WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Cloud Zoom Image Plugin
[resolved] Zoom in on a resized image instead of the full size image (2 posts)

  1. serons
    Member
    Posted 8 months ago #

    Is there a way to make the plugin zoom in on a resized image instead of the uploaded full size image? For example the image generated by WordPress for Large size image dimensions.

    http://wordpress.org/plugins/cloud-zoom-for-woocommerce/

  2. serons
    Member
    Posted 8 months ago #

    I was able to do this by copying the template plugins/woocommerce/templates/single-product/product-image.php into {mytheme}/woocommerce/single-product and replacing
    $image_link = wp_get_attachment_url( get_post_thumbnail_id()
    with
    $image_link = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
    and then using
    $image_link[0] in place of $image_link.

Reply

You must log in to post.

About this Plugin

About this Topic