Brought to you by
2BlueSolutions Creative Web Design

Thursday, March 6, 2014

Wordpress Plugin - Lightbox Gallery: Separate Galleries on page

If you are using the Lightbox Gallery plugin for Wordpress and want to enable it on a "blog roll" type page (where all your posts show up on one page), you will find that the lightbox pop up will actually include all the images on the page when you only want it to include the images from that specific post.

The solution is a quick code change in /wp-content/plugins/lightbox-gallery/lightbox-gallery.php

Search for:

'class'      => "'" . $post->ID . "'",

 and replace with:

'class'      => 'gallery1',