Support » Plugin: WooCommerce Product Video Gallery » Incorrect gallery thumbnail image size is used

  • Resolved Gal Baras

    (@galbaras)


    WooCommerce defines the image size ‘woocommerce_gallery_thumbnail’ to be used for gallery thumbnails, while the standard ‘thumbnail’ size is used for other things.

    Yet, WooCommerce Product Video Gallery uses ‘thumbnail’.

    Please switch to using ‘woocommerce_gallery_thumbnail’, or provide a way to choose which image size to use (setting or filter).

    • This topic was modified 2 months, 3 weeks ago by Gal Baras.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Gal Baras

    (@galbaras)

    BTW, the code applies the filter ‘woocommerce_single_product_image_thumbnail_html’ with 3 arguments (#3 being $posst->ID), but WooCommerce only applies it with 2$html and $post_thumbnail_id.

    This can cause problems on sites with filter functions for this handle.

    Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    I will fix this in next release.
    Thanks for your suggestion.

    Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    Hello,
    I’ve fixed it in this release.

    Thank You.

    Hi,
    I’d like to adjust the image thumbnail size.
    I’ve tried the following code without success:

    add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
        return array(
            'width' => 70,
            'height' => 70,
            'crop' => 1,
        );
    } );

    also tried different hooks:
    woocommerce_gallery_thumbnail_size
    woocommerce_single_product_image_thumbnail_html

    I’ve also tried using css; but the variableWidth won’t adjust.

    Thanks in advance.

    Thread Starter Gal Baras

    (@galbaras)

    @vcb this thread is marked as “resolved”. Please start a new one.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.