S
S
Sasha2021-01-10 19:33:13
WordPress
Sasha, 2021-01-10 19:33:13

Thumbnails in wukomers (bring the original). How?

There are thumbnails under the product photo in the wokomers (photo 150*150).
How to make it so that the original images are displayed there? I just plan to do without thumbnails, because. My pictures are very small and no additional thumbnails are needed.

I turned off thumbnail creation (I found a solution through functions php), but now how to replace these non-working thumbnails with original images? Attaching photo.
5ffb2bf75f6ab781357637.jpeg
I think what to dig wp-content\plugins\woocommerce\templates\single-product in product-thumbnails.php, but what exactly should I change there so that original photos from the gallery are displayed instead of thumbnails.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sasha, 2021-01-12
@sasha_kristall

In the function.php of your theme, add the following code:

add_filter( 'woocommerce_gallery_thumbnail_size', function( $size ) {
return 'thumbnail';
} );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question