edwindekuiper
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Product thumbnail size not editable after last updateI solved the issue with this code:
//Added square images in WooCommerce Single product page
add_theme_support( ‘woocommerce’, array(
‘thumbnail_image_width’ => 300,
‘gallery_thumbnail_image_width’ => 169,
‘single_image_width’ => 500,
) );add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
return array(
‘width’ => 169,
‘height’ => 169,
‘crop’ => 1,
);
} );Forum: Plugins
In reply to: [WooCommerce] Product thumbnail size not editable after last updatethanks, but unfortunately no success.
btw
product-thumbnails.php is quite empty…
// Note:wc_get_gallery_image_htmlwas added in WC 3.3.2 and did not exist prior. This check protects against theme overrides being used on older versions of WC.
if ( ! function_exists( ‘wc_get_gallery_image_html’ ) ) {
return;
}Forum: Plugins
In reply to: [WooCommerce] Product thumbnail size not editable after last updateHi Dav74,
yes I did. The reaction of Select Themes was to look in https://github.com/woocommerce/woocommerce/wiki/Customizing-image-sizes-in-3.3
But I’m a designer/webmaster not a programmer.
I placed this code in my child theme function.php
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
return array(
‘width’ => 200,
‘height’ => 200,
‘crop’ => 1,
);
} );It doesn’t work.
Regenerate thumbnails gave this value:
woocommerce_thumbnail: 300×300 pixels (cropped to fit)
woocommerce_gallery_thumbnail: 200×200 pixels (cropped to fit)in the css:
.woocommerce .product .images.woocommerce-product-gallery–columns-4 :not(:first-child).woocommerce-product-gallery__image {
width: 33.33%;
padding-top: 6px;
padding-right: 3px;
}Stil, the images are not square: https://stijlapart.nl/meubels-en-interieurs/maatwerk/slaapkamer-op-zolder-op-maat-ontworpen-en-gemaakt/
is there someone to help?
Forum: Plugins
In reply to: [WooCommerce] Product thumbnail size not editable after last updateThe question;
Can you please tell me how you update the product thumbnail sizes now, since your 3.3 update? Previously this was so well done, in image settings. Now it appears you have removed this basic functionality.I just need square cropped thumbnail on a single product page. This issue tells me it is solved. But I just can’t see where there is a solution.
Please help me out, how can I get square thumbnails?