Answer the question
In order to leave comments, you need to log in
Twice as many images in fancybox? Reason?
I loop through all the photos from the ACF field, the gallery field.
<div class="pop-up-slider">
<?php foreach( $images as $image ): ?>
<a class="img-click" data-fancybox="gallery" href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['sizes']['thumbnail']; ?>" />
</a>
<?php endforeach; ?>
$('.case-img').on('click' , function() {
if($(this).hasClass('hasImg')) {
$(this).closest('.shadow-have').next('.case-pop-up-wrapper').find('.img-click:first-child').trigger('click');
} else {
$(this).closest('.shadow-have').next('.case-pop-up-wrapper').find('.video-click').trigger('click');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question