Title: Slideshow &amp; lightbox?
Last modified: August 21, 2016

---

# Slideshow & lightbox?

 *  Resolved [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/)
 * Hi there,
    I am using the great slideshow plugin but i was wondering if i could
   make this slideshow work with a lightbox feature/plugin. I have found some lightbox
   plugins that automatically create a lightbox URL on each image on my website,
   but this is not running smoothly with the slideshow plugin:
 * – or the lightbox plugin allows me to add an attribute to an `<a href>`, so i
   can manually add these `<a href>` to the slideshow plugin. This enables the lightbox
   feature for my slideshows, but when i want to go to the next image (within the
   lightbox) it shows images other than the images added to the slideshow. So it
   will show more images than ive added to the slideshow.
 * – or the lightbox plugin does not provide the feature to manually add an attribute.
   The lightbox works on all the images but not on the slideshow images.
 * Any suggestions to fix this?
    Thanks a lot! [http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670724)
 * Hi,
 * A lightbox will be available in version 2.3.0, but a release date has not been
   set for this version yet.
 * Best regards,
    Stefan
 *  [jodzeee](https://wordpress.org/support/users/jodzeee/)
 * (@jodzeee)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670832)
 * Yay! That’s good news. Any ballpark idea of when? Like in a month, a year, or???
   I’m so excited to use this plugin!
 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670833)
 * I’m hoping I’m not about to kill too much of your excitement, but I’m guessing
   the lightbox feature will still be a couple of months from now.
 * However, you could try to implement a lightbox feature into the slideshow plugin
   by following the instructions in [this thread](http://wordpress.org/support/topic/clickable-images-1).
 *  Thread Starter [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670844)
 * Fixed it:
    in views/slideshowplugin/slideshow.php
 *     ```
       <?php if (empty($_SESSION['count'])) {
          $_SESSION['count'] = 1;
       } else {
          $_SESSION['count']++;
       } ?>
       ```
   
 * In /slideshow.php
 *     ```
       if(isset($_SESSION['count'])):
         unset($_SESSION['count']);
         endif;
       ```
   
 * and in views/slideshowplugin/slideshowslide/frontend_attachment:
 *     ```
       if(empty($url))
       			$anchorTagAttributes = 'rel="lightbox[' . $_SESSION['count'] . ']" href="' . $imageSrc . '" ' . (!empty($urlTarget) ? ' target="' . $urlTarget . '" ' : '');
       ```
   
 * For more detailed info, leave a response.
 *  [leoly](https://wordpress.org/support/users/leoly/)
 * (@leoly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670879)
 * can you provide more guidance please, what exactly needs to be changed or are
   these additions?
 *  Thread Starter [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670883)
 * sorry for my late response.
    Jup these are additions.
 * in views/slideshowplugin/slideshow.php
    ADD at the top of the file
 * In /slideshow.php
    ADD at the bottom of the file
 * and in views/slideshowpluginslideshowslide/frontend_attachment:
    ADD at line 
   51.
 * This creates a session id per slideshow, that way the slides can be grouped per
   slideshow.
 * Good luck! Let me know if it worked out!
 *  [mahlerthetitan](https://wordpress.org/support/users/mahlerthetitan/)
 * (@mahlerthetitan)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670884)
 * Dear wzshop,
    I created a wordpress.org account _just_ so I could thank you, 
   and say “Bravo!”. Your suggestions work like a charm. You rock!! 🙂
 *  Thread Starter [wzshop](https://wordpress.org/support/users/wzshop/)
 * (@wzshop)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670890)
 * Hey mahlerthetitan,
    Im glad to hear that! Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Slideshow & lightbox?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

## Tags

 * [feature](https://wordpress.org/support/topic-tag/feature/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 8 replies
 * 5 participants
 * Last reply from: [wzshop](https://wordpress.org/support/users/wzshop/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/slideshow-lightbox/#post-3670890)
 * Status: resolved