- This topic has 3 replies, 2 voices, and was last updated 8 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Additional product picture in lightbox – first image is the thumbnail
Hi there
I’ve uploaded the thumbnail files via the WP eStore product creator, and I’m using a fancy theme with lightbox. This works great, however when I click on the product’s thumbnail, the first image that opens in the lightbox is the thumbnail. What I’d like, is for the thumbnail not to open in lightbox at all, only the larger version of the image. This file is located in a folder on the web server. Is there any way to achieve this?
Thanks in advance.
Page URL: [http://www.lvvta.org.nz/shop/]
The fancy display template will show the thumbnail and any other additional image (all of them) in the lightbox.
The following post will explain more on this topic:
Thanks. Can I somehow set this so that it doesn’t show the thumbnail in the lightbox?
Yes, you can apply a small tweak to turn off lightbox for the thumbnail image.
Add the following PHP code in your theme’s functions.php file:
add_filter('eStore_product_thumbnail_rel', 'override_rel_for_thumbnail');
function override_rel_for_thumbnail($rel){
return '';
}
The above code will override the “rel” parameters value which will turn off the lightbox for the thumbnail image.