Tagged: x
-
AuthorPosts
-
March 1, 2017 at 7:45 am #1390263
Hey Themeco.
I have a problem.
My product page, for example: https://nani.dk/koeb/antioxidanter/faa-mere-energi-kosttilskud/
is using 400×400 px images for thumbnails.
I’m not able to resize this thumbnail size with a plugin as regenerate thumbnails see plugin, and i’ve made a file in my child-theme product-thumbnails.php, where i’ve played around with this code, but i can’t seem to figure it out.echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<a imageurl="%s" class="%s PETER" title="%s" data-rel="prettyPhoto[product-gallery]">%s</a>', esc_url( $props['url'] ), esc_attr( $image_class ), esc_attr( $props['caption'] ), wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ), 0, $props ) ), $attachment_id, $post->ID, esc_attr( $image_class ) );
Can you help me?
I want the images to be 93×93 px, so they use as little space as possible.
Best
PeterMarch 1, 2017 at 9:17 am #1390383Hi Peter,
If you are using the regenerate thumbnails plugin then it should work fine. You can reach to the plugin support if that doesn’t work as expected. Perhaps you are missing something.
Thanks!
March 6, 2017 at 1:28 pm #1396680No. It is not working fine.
It’s Woocommerce’s thumbnails: catalog, single and thumbnail.
I can’t reach them with that plugin.
I read here – https://community.theme.co/forums/topic/product-image-size-settings-missing-in-woocommerce-product-options/ – that X-theme disable the settings Product Images area under Woocommerce.
But i think it would be easier if you could guide me to that file in X-theme where you put your Woocommerce image dimension, and then i could copy that file, put it in my child theme and regenerate all thumbnails.
Maybe that would help.
What do you think?March 6, 2017 at 1:31 pm #1396683*copy that file and change the image-dimension of course.
March 7, 2017 at 2:46 am #1397392Hi There,
Please check this thread:https://community.theme.co/forums/topic/product-images-woocommerce/#post-224057
Hope this helps.
March 8, 2017 at 2:33 pm #1399577Thank you.
I will try it out. 🙂March 8, 2017 at 2:39 pm #1399582Let us know how it goes.
-
AuthorPosts