Title: adding Next and Previous image functionality
Last modified: September 17, 2020

---

# adding Next and Previous image functionality

 *  [WildFire](https://wordpress.org/support/users/wildfire9859/)
 * (@wildfire9859)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/)
 * hello
    first of all thanks for this nice plugin. can you add functionality of
   viewing other images with “Next and Previous” without having to close the lightbox.
   thanks in advance.

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

 *  Plugin Author [Ozzy Rodriguez](https://wordpress.org/support/users/ozzyr/)
 * (@ozzyr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13598605)
 * That works automatically when you use it with a gallery, but not with single 
   images.
 *  Thread Starter [WildFire](https://wordpress.org/support/users/wildfire9859/)
 * (@wildfire9859)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13598613)
 * that sounds weird because it doesn’t work for me….
 *  Thread Starter [WildFire](https://wordpress.org/support/users/wildfire9859/)
 * (@wildfire9859)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13598972)
 * its funny though , i do have the Next and Previous functionality on product thumbnail(
   Single Image) but not on gallery…
 *  Plugin Author [Ozzy Rodriguez](https://wordpress.org/support/users/ozzyr/)
 * (@ozzyr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13598979)
 * Very weird.
 * Can you provide a link to an example? A product page with a thumbnail that also
   has a single image as well as a gallery somewhere on the page would be perfect.
 *  [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704009)
 * Hi,
    I really like how the plugin pops up – nice display of an image.
 * But like the others I also dont see Next or Previous buttons and so I cannot 
   use this plugin.
 * Is there ANYTHING we can do or setup so this would work?
 *  Plugin Author [Ozzy Rodriguez](https://wordpress.org/support/users/ozzyr/)
 * (@ozzyr)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704741)
 * If they’re single images, the plugin doesn’t do this on purpose and we’re not
   going to be adding an option to make it happen as it will break basic functionality
   that we really like.
 * If you’re saying you don’t see the previous and next arrows on a gallery, please
   post a link to a page where we can see it happening.
 *  [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704768)
 * Hi,
 * > If they’re single images,
 * I am not sure that an image could be anything but single. Do you mean the only
   image on a page?
 * > we’re not going to be adding an option to make it happen
 * Make what happen? And how could you possibly add any code that would produce 
   Prev and Next links with a single image?
 * > If you’re saying you don’t see the previous and next arrows on a gallery
 * What do you define as a gallery?
 * In my case I have 8 thumbnail images side by side on a page that link to their
   respective full size images.
 * If I use most Lightbox plugins, they will recognize that there are multiple images
   on the page and show them one after another using Prev and Next links.
 * I cant link publicly without permission from my client.
 * Again I ask – Is there ANYTHING we can do or setup so this would work?
 *  Plugin Author [Ozzy Rodriguez](https://wordpress.org/support/users/ozzyr/)
 * (@ozzyr)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704795)
 * By single images, I mean images that are not in a gallery.
 * An example of a gallery would be images in a gallery Gutenberg block. WP Featherlight
   isn’t going to handle images like a gallery just because they’re next to each
   other.
 * If another lightbox plugin does works the way you’d like, I’d use that one for
   this project. WP Featherlight isn’t the best plugin for all use cases, and it
   seems like this may be one of them.
 *  [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704819)
 * It could be that others who have this same issue have the same situation as I
   do.
 * I could easily add html or css selectors to enclose my images in any way needed.
   But without you defining what you consider a Gallery from an html or css point
   of view, I dont know what to add.
 * A bunch of thumbnails side by side is what a gallery is.
 *  Plugin Author [Ozzy Rodriguez](https://wordpress.org/support/users/ozzyr/)
 * (@ozzyr)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704849)
 * I didn’t know you were looking for the HTML for it. If you wrap your images in
   a div or something with a class of `gallery`, it should find them.
 * Here is the spot in the code where it’s looking for it: [https://github.com/cipherdevgroup/wp-featherlight/blob/develop/assets/plugin/js/wpFeatherlight.js#L62](https://github.com/cipherdevgroup/wp-featherlight/blob/develop/assets/plugin/js/wpFeatherlight.js#L62)
 *  [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13704889)
 * Thanks for clarifying.
 * I will give that a try.
 *  [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13858616)
 * Just to report back:
 * > If you wrap your images in a div or something with a class of gallery, it should
   > find them.
 * This works 🙂

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

The topic ‘adding Next and Previous image functionality’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-featherlight_121e24.svg)
 * [WP Featherlight - A Simple jQuery Lightbox](https://wordpress.org/plugins/wp-featherlight/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-featherlight/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-featherlight/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-featherlight/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-featherlight/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/adding-next-and-previous-image-functionality/#post-13858616)
 * Status: not resolved