New Landing How can we help? Themeforest Theme Support Neighborhood Single Product Hover Zoom Image – Maximum Size (800px wide)?

Viewing 10 posts - 1 through 10 (of 10 total)
  • #181671
    Stephen
    Member
    Post count: 44

    In order to provide my website’s users with a sufficient degree of zoom when hovering over my product images I have uploaded my product images to the site at 1700px wide.

    However after having uploaded and assigned the product images, when I check the image markup & css, the theme has enforced the use of an 800px wide version for the zoom image.

    This does not provide a sufficient degree of zoom for my products, and I have no option anywhere to specify the max size of the zoom image.

    To ensure that this issue is not specific to my site I have checked it across other installs of the neighborhood theme. It is consistently a problem across every neighborhood theme install I have checked.

    Could you please provide a function whereby I can specify a custom size for use for the zoom image?

    #181943
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide a link to a product page in your site so we can check it?
    Thanks

    -Rui

    #182192
    Stephen
    Member
    Post count: 44
    This reply has been marked as private.
    #182317
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Go to neighborhood/woocommerce/single-product/product-image.php and edit line 14:

    $product_image_width = apply_filters('sf_product_image_width', 800);

    – Kyle

    #182590
    Stephen
    Member
    Post count: 44

    Thanks Kyle.

    Once I’ve changed the specification in that file, do I then need to rebuild my thumbnails?

    I use the following plugin for that – https://wordpress.org/plugins/ajax-thumbnail-rebuild/

    #182597
    Stephen
    Member
    Post count: 44

    Pursuant to my previous post – after having amended the relevant file in my child theme to 1300, and then rebuilt my custom image sizes (of which WordPress was not recognizing a custom image size for the zoom images) the zoom image is still utilising an 800px wide version. Nothing has changed.

    Does the theme have a maximum image size specification anywhere? Is there anything more I need to do?

    #182653
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    If you upload a new product does it still use 800px?

    – Kyle

    #182654
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ahh sorry, you need to change another instance on line 65:

    $image = aq_resize( $image_link, 800, NULL, true, false);

    – Kyle

    #182659
    Stephen
    Member
    Post count: 44

    Thanks Kyle. It’s now working correctly, no rebuilding of custom image sizes required.

    #182660
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register