Home › Forums › Themes Support › Gecko › Single Product Gallery resizing
Tagged: single product gallery
- This topic has 5 replies, 2 voices, and was last updated 4 years, 10 months ago by Harry.
-
AuthorPosts
-
-
June 7, 2019 at 7:04 pm #31689FredSupport Expired
Hello,
Do you know how to resize the gallery ? I wanted to have it smaller in order to have less space for page displaying.
By the way I regenerate thumbnails to have better quality (and also changed in settings) but variation gallery still horrible and pixelised (I empty cache of my browser). Do you have any solution?
That’s the only thing I have to correct, all the template is really cool by the way.
Best Regards
Attachments:
You must be logged in to view attached files. -
June 7, 2019 at 8:05 pm #31692HarrySupport Expired
Hi,
Please add below code to gecko-child > functions.php
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) { return array( 'width' => 300, 'height' => 300, 'crop' => 0, ); });
fter making changes to image sizes you may need to regenerate your thumbnails so the new sizes are used for existing images.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
June 8, 2019 at 1:32 am #31695FredSupport Expired
Thanks Harry,
But it’s not ok for the variation gallery
When choosing a variation thumbnails still pixelised for the gallery
in attachement I provide you a picture when not variation selected and then when selectedThat’s realy my unique problem. And I must be online realy soon.
Thanks a lot
Best regards
Attachments:
You must be logged in to view attached files. -
June 8, 2019 at 8:02 am #31698HarrySupport Expired
Hi Fred,
Did you add the code i suggest.
I check on my test site it work well with image of variation gallery.Please add code to gecko-child > functions.php and activate child theme
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) { return array( 'width' => 300, 'height' => 300, 'crop' => 1, ); });
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
June 8, 2019 at 5:11 pm #31700FredSupport Expired
sorry it was my fault, I’ve done the modifications on the child theme but didn’t activate it.
I’m realy sorry for the lost of time !
Thanks a lot for you help, you theme rocks !
-
June 8, 2019 at 5:13 pm #31701HarrySupport Expired
You’re welcome.
Have a great weekend!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.