Title: Photoswipe for NextGEN Gallery
Author: Guillermo
Published: <strong>October 13, 2012</strong>
Last modified: January 29, 2013

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/photoswipe-for-nextgen-gallery.svg)

# Photoswipe for NextGEN Gallery

 By [Guillermo](https://profiles.wordpress.org/gsenas/)

[Download](https://downloads.wordpress.org/plugin/photoswipe-for-nextgen-gallery.1.2.1.zip)

 * [Details](https://wordpress.org/plugins/photoswipe-for-nextgen-gallery/#description)
 * [Reviews](https://wordpress.org/plugins/photoswipe-for-nextgen-gallery/#reviews)
 *  [Installation](https://wordpress.org/plugins/photoswipe-for-nextgen-gallery/#installation)
 * [Development](https://wordpress.org/plugins/photoswipe-for-nextgen-gallery/#developers)

 [Support](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/)

## Description

The default NextGEN gallery navigations (Shutter, Thickbox, etc…) fall short when
using a mobile browser?
 Now you can use Photoswipe, the best mobile image browser,
just installing this plugin. The default gallery effect and configuration is kept
when accessing from a desktop browser.

After activation you’ll find a new Photoswipe submenu in the NextGEN Gallery menu,
allowing you to configure how the plugin works.

Please note, I am not the developer, or related in any way with of the authors of
[Photoswipe](http://www.photoswipe.com/) or [NextGEN Gallery](https://wordpress.org/extend/plugins/nextgen-gallery/).
This plugin is only intended to make Photoswipe integration with NextGEN Gallery
dead simple.

If you find this plugin helpful, consider [donating](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=8HNE3583KAVEQ&lc=US&item_name=Guillermo%20Senas&amount=0%2e10&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted),
at least ten cents.

#### Options

The plugin is ready to be used with zero configuration, but to make testing easier,
there are 3 configuration options:

 * _Replace viewer with Photoswipe only on mobile browsers:_
    This is the default
   behavior, and will replace the NextGEN Gallery Effect with Photoswipe only when
   a mobile browser is detected.
 * _Always replace viewer with Photoswipe:_
    Useful for testing.
 * _Never replace the viewer:_
    Disables the plugin. Much like deactivating the 
   plugin.
 * _Disable additional viewers:_
    In this section you can disable other supported
   image viewers, other than the NextGEN Gallery default ones. Currently only Fancybox.

## Screenshots

[⌊Plugin options - Choose when Photoswipe should be applied.⌉⌊Plugin options - Choose
when Photoswipe should be applied.⌉[

Plugin options – Choose when Photoswipe should be applied.

[⌊New Gallery submenu⌉⌊New Gallery submenu⌉[

New Gallery submenu

[⌊Result⌉⌊Result⌉[

Result

## Installation

STEP 0: Make sure you have the [NextGEN Gallery](https://wordpress.org/extend/plugins/nextgen-gallery/)
plugin already installed and activated!

_Automatic Installation_

 1. Download and install Photoswipe for NextGEN Gallery using the built in WordPress
    plugin installer.

_Manual Installation_

 1. Download the zip file and unzip it.
 2. Upload the ngg-photoswipe folder to your `/wp-content/plugins/` directory. Alternatively,
    use the WordPress plugin install in `Plugins >> Add New >> Upload` to upload and
    install the zip file.
 3. Activate the plugin through the `Plugins` menu in WordPress.

Done! Photoswipe will be used when accessing from a mobile browser.

If you want to be sure, check your “Gallery” menu. A new Photoswipe section should
be there.

## FAQ

  How is the standard effect (Shutter, Thickbox…) prevented when using Photoswipe?

The javascript added when a mobile browser is detected does two things:

 * a) Fire the Photoswipe viewer when you click on a image
 * b) Remove the default additional HTML markup added in the “Link Code Line” of
   the Effects tab in NextGen Gallery Options

That way, the standard defined effect won’t fire when Photoswipe is used. Please
don’t change the markup, or two viewers may fire at the same time.

If you absolutely need to change the “Link Code Line”, change the ngg-photoswipe.
js to remove the specific markup you add.

  Can I use WPTouch with this plugin?

No, sorry, this plugin DOES NOT WORK WITH WPTOUCH.

  Will the image descriptions show?

Yes, the description will show behind the title, if the image has one.

  Is there any menu page to change the default Photoswipe options?

No, sorry. But you can edit the ngg-photoswipe.js file to achieve what you want.

  When will be my favorite viewer also adapted to use Photoswipe when using a mobile
browser?

When it’s done.

## Reviews

![](https://secure.gravatar.com/avatar/b94f7ca4b99f5dc582de8e68260b016f73365a3ea408f7db9f273f52b74e29d5?
s=60&d=retro&r=g)

### 󠀁[If not using fancybox, this is the fix](https://wordpress.org/support/topic/if-not-using-fancybox-this-is-the-fix/)󠁿

 [infotm](https://profiles.wordpress.org/infotm/) August 26, 2017

Like others, I would use photoswipe on my phone and see this at the top of my blog:\
wp-content\plugins\photoswipe-for-nextgen-gallery\ngg-photoswipe.php on line 41 
To fix this, go to that file, edit it and change lines 41-43 to: // if (1 == $options[‘
fancybox’]) { // wp_enqueue_script(‘ngg-photoswipe-disable-fancybox.js’, plugins_url(‘
p$ // } This disables the check for fancybox. If you’re using fancybox, you’re on
your own.

![](https://secure.gravatar.com/avatar/26f6ba650ee78d03f174993af6107f9d70cc9e272468fe7400ca5ae851dd3c00?
s=60&d=retro&r=g)

### 󠀁[Doesn't work with 3.6](https://wordpress.org/support/topic/doesnt-work-with-3-6/)󠁿

 [theatereleven](https://profiles.wordpress.org/theatereleven/) February 7, 2017

I have a simple, custom WP site built on 3.6. Have a single NextGen gallery with
20 photos. Upon installation this plugin throws and error and crashes the nextgen
gallery page. The error I received is: Warning: Illegal string offset ‘fancybox’
in C:\wamp\www\wp-content\plugins\photoswipe-for-nextgen-gallery\ngg-photoswipe.
php on line 41 Bummer…was hoping this plugin would work.

 [ Read all 11 reviews ](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/)

## Contributors & Developers

“Photoswipe for NextGEN Gallery” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Guillermo ](https://profiles.wordpress.org/gsenas/)

[Translate “Photoswipe for NextGEN Gallery” into your language.](https://translate.wordpress.org/projects/wp-plugins/photoswipe-for-nextgen-gallery)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/photoswipe-for-nextgen-gallery/),
check out the [SVN repository](https://plugins.svn.wordpress.org/photoswipe-for-nextgen-gallery/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/photoswipe-for-nextgen-gallery/)
by [RSS](https://plugins.trac.wordpress.org/log/photoswipe-for-nextgen-gallery/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.1

Description fixed

#### 1.2

Major bugfixing:

 * Works on WordPress 3.0, as stated in the readme
 * Javascript errors fixed when showing pages with no galleries
 * Photoswipe CSS & JS files no longer load on admin pages, preventing many related
   issues

#### 1.1

Option to disable more gallery viewers. Starting with Fancybox.

#### 1.0.2

Wrestling with readme.txt format. Sorry.

#### 1.0.1

Minor bugfix. Now Photoswipe icons show correctly.

#### 1.0

 * Hello world! Initial version.

## Meta

 *  Version **1.2.1**
 *  Last updated **13 years ago**
 *  Active installations **300+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.4.2**
 * Tags
 * [ipad](https://wordpress.org/plugins/tags/ipad/)[iphone](https://wordpress.org/plugins/tags/iphone/)
   [mobile](https://wordpress.org/plugins/tags/mobile/)[NGGallery](https://wordpress.org/plugins/tags/nggallery/)
   [photoswipe](https://wordpress.org/plugins/tags/photoswipe/)
 *  [Advanced View](https://wordpress.org/plugins/photoswipe-for-nextgen-gallery/advanced/)

## Ratings

 4.5 out of 5 stars.

 *  [  9 5-star reviews     ](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/reviews/)

## Contributors

 *   [ Guillermo ](https://profiles.wordpress.org/gsenas/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/photoswipe-for-nextgen-gallery/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=8HNE3583KAVEQ&lc=US&item_name=Guillermo%20Senas&amount=0%2e10&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)