• Resolved powerj

    (@powerj)


    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; ?>

    https://www.ads-software.com/plugins/simple-lightbox/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, please provide a link to a page that exhibits the issue you are experiencing and I would be glad to take a closer look.

    Thread Starter powerj

    (@powerj)

    trucksafe dot com dot au /trucksafe-members/members-gallery

    Thanks

    Plugin Author Archetyped

    (@archetyped)

    Thanks. All images appear to be opening properly in the lightbox. Can you provide a bit more detail on the issue you’re experiencing?

    Thread Starter powerj

    (@powerj)

    Is it possible its due to a slow internet connection?

    I called a friend and its not happening to them, so I guess I’m not too worried about it.

    When I go to that URL and immediately click on any image, I get just a plain image and no lightbox. This happens for 3 – 6 images and then the lightbox starts working. It happens in Firefox, Chrome, Safari and iPad. I also tried with my mobile hotspot to get a different internet connection but still the same (but its very slow also)

    Thanks for your quick response. Greatly appreciated.

    Plugin Author Archetyped

    (@archetyped)

    Hi, a slow connection may be related to your issue. Make sure to allow the page to finish loading before clicking on any links. If the page has not finished loading, then SLB’s code may not yet be fully loaded when you click on a link.

    Please let me know if the images are displayed in the lightbox once the page has completed loading.

    Thread Starter powerj

    (@powerj)

    Sorry I can’t tell. Today it seems to be working fine. Thanks for your help

    Plugin Author Archetyped

    (@archetyped)

    Glad to hear it’s working fine now ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Delay before lightbox activating’ is closed to new replies.