Home Forums WoodMart support forum Gallery thumbnails heights not same

Gallery thumbnails heights not same

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #381216

    bilalmalkoc
    Participant

    Hello. I set all gallery images thumbnails sizes same with this code:

    add_filter(
    	'woocommerce_get_image_size_gallery_thumbnail',
    	function() {
    		return array(
    			'width'  => 340,
    			'height' => 340,
    			'crop'   => true,
    		);
    	},
    	999
    );

    It is working fine. But first image’s height is different. I think there is an a javascript conflict with data-o_src attribute. Can you help me about this?

    #381217

    bilalmalkoc
    Participant

    It happens when variation selected.

    #381248

    Hello,

    Please remove the customization and follow this manual: https://xtemos.com/docs-topic/image-size-and-content-alignment-in-a-product-grid/

    Best Regards

    #381365

    bilalmalkoc
    Participant

    I did but still all images heights’ not equal.

    #381367

    bilalmalkoc
    Participant

    I regenerated thumbnails.

    #381542

    Hello,

    Did it help to solve the issue?

    Best Regards

    #381573

    bilalmalkoc
    Participant

    Hello. No it doesn’t.

    #381763

    Hello,

    Have you removed the custom code you show in the top?

    Best Regards

    #381824

    bilalmalkoc
    Participant

    Yes i removed.

    #382039

    Hello,

    The only way to achieve a similar image size is to upload images of the same size and proportion.

    Best Regards

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Gallery thumbnails heights not same’ is closed to new replies.