我在网站上使用iLightbox Jquery作为画廊选项,但最初只有几幅图像显示在一行中。我想做的是,无论您单击哪个图像,都不必在图库的第一张图像上打开灯箱。有没有办法做到这一点?
该网站的链接为https://pemburytours.com/trip/laurettes-essential-essence-of-kruger-safari/
和我使用的代码是。
foreach ($wpte_trip_images as $image) {
$link = wp_get_attachment_image_src($image, 'large'); ?>
<a href="<?php echo $link[0];?>" data-rel="iLightbox[featured-trip-gallery]" class="trip-gallery-block">
<div class="trip-gallery-inner-block">
<div class="feature-trip-gallery" style="background-image: url('<?php echo $link[0];?>');" data-thumb="<?php echo $link[0];?>"></div>
</div>
</a>
<?php
}