Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1390263

    peterhoejlund
    Participant

    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
    Peter

    #1390383

    Rupok
    Member

    Hi 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!

    #1396680

    peterhoejlund
    Participant

    No. 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?

    #1396683

    peterhoejlund
    Participant

    *copy that file and change the image-dimension of course.

    #1397392

    Lely
    Moderator

    Hi There,

    Please check this thread:https://community.theme.co/forums/topic/product-images-woocommerce/#post-224057

    Hope this helps.

    #1399577

    peterhoejlund
    Participant

    Thank you.
    I will try it out. 🙂

    #1399582

    Jade
    Moderator

    Let us know how it goes.