Delay before lightbox activating
-
I have a gallery (core) that has a delay after opening the website where the SLB doesn’t activate. It starts works after clicking on the 4 or 5th image. The template has the following
<?php while($custom_query->have_posts()) : $custom_query->the_post(); ?> <?php //Variables ?> <?php $images = get_field('image_gallery'); ?> <?php if( $images ): ?> <?php foreach( $images as $image ): ?> <?php $image_url = $image['url']; ?> <?php $content="<li><a href='$image_url'><img alt='{$image['alt']}' src='{$image['sizes']['thumbnail']}' /></a> <p class='caption'>{$image['caption']}</p></li>"; ?> <?php if ( function_exists('slb_activate') ) ?> <?php $content = slb_activate($content); ?> <?php echo $content; ?> <?php endforeach; ?> <?php endif; ?> <?php endwhile; ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Delay before lightbox activating’ is closed to new replies.