in Coding

Show next image by clicking images in NextGEN Gallery with shutter effect

Here‘s the same for NextGEN + Thickbox!

Last year I posted an article about modifying NextGEN Gallery (with Thickbox) to show the next image when you click on the current one. This behaviour is well known from Facebook an co. To go to the next picture, just click on the current one. To close the slideshow, just click beside the picture. Easy. You can find the article here.

Since I used the Thickbox effect in my modification, a lot of people asked me if it is possbile with the Shutter effect, too. Of course it is!

Here’s what you have to do to modify NextGEN Gallery with the Shutter effect to display the next image by clicking on the current one. I tested it with WordPress 3.7.1 und NextGen 2.0.33.

1 – Open the file wp-content/plugins/nextgen_gallery/products/photocrati_nextgen/modules/lightbox/static/shutter/shutter.js

2 – Arround line number 143 there should be a line like this:

You have to replace this line with the following one:

3 – Now you have to add a new function just before

Here’s the function you have to add:

Now the file should look like this:


That’s it! I hope it works for everyone.

Best regards,

  • Pingback: Show next image by clicking images in NextGEN Gallery | Thomas Uhrig()

  • Ma Safalya Tulsi

    Thomas, good day! I’ve tried your way with shutter lightbox. But seems due to upgrading versions of wordpress and nextgen gallery the old codes dont work. And I could not find any solutions by serfing google. I have WordPress 4.4.2 and Nextgen Gallery 2.1.23. It could be so nice if you upgrade the codes. Thanks for your help.