-
Author
Tagged: full size, woocommerce, images, lightbox, product image
-
May 23, 2015 at 22:31 #59945romanzyParticipant
Hi,
I created a new WooCommerce product with two product images each with the same dimensions 1560×1000 and the same dpi. One of the 2 images is set as the featured image, the other one is added to the product gallery.
Both images are hard cropped to 600×600 by WooCommerce to fit in the product image gallery carousel, and to 180×180 for the Product Image Gallery.
Now, when I click on the image that it is set as the featured image, then I get the full image size displayed in the lightbox, but the second image remains 600×600 in the lightbox. Both images have the image link to the full size image save in the Media Gallery.
How can I display all images in full size in the lightbox?
Thank you for your help.
Romanzy
Attachments:
You must be logged in to view attached files.May 24, 2015 at 20:02 #59990sharmstrModeratorOkay. I found what’s causing it. I’m not sure how the devs will end up fixing it, but I will alert them to it and it will be fixed in Kleo 3.0.
In the meantime, open up /kleo/woocommerce/single-product/product-thumbnails.php. Scroll down to around line 50 and change it from this
COPY CODE$image_link = $image_src[0];
to this
COPY CODE//$image_link = $image_src[0];
Normally I wouldnt have you edit core files, but since there will be a fix, its okay in this instance.
Let me know if it causes any issues. I did some basic testing and it seems fine.
(@abe – pushing up the initial fix. Seems you’ve just defined $image_link twice. The first define is correct, the second changes the href to the thumbnail. )
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
May 24, 2015 at 21:06 #60002romanzyParticipantThank you so much Sharmstr. I truly appreciate. I spend all Saturday trying to fix the problem. So. I’m glad that you solved it, and that v3.0 will come with a standard fix.
May 25, 2015 at 14:23 #60030AbeKeymasterThank you @sharmstr
The fix will be included in 3.0 versionHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.