Forums

Mobile Gallery
Separate gallery support? (4 posts)

  1. Jason Spatola
    Member
    Posted 3 months ago #

    If I have multiple galleries on a page, is there a way to keep them separate in the "lightbox" view?

    Instead of jumping from the last image in Gallery A to the first image in Gallery B, I'd like to keep my galleries segregated.

    To vivify, what I'm trying to accomplish is similar to the "03-multiple-image-sets" file in the PhotoSwipe examples.

    Great plugin, otherwise!

    http://wordpress.org/extend/plugins/mobile-gallery/

  2. Dalton Rooney
    Member
    Posted 3 months ago #

    Good call! I'll look into this and update the plugin shortly.

  3. Jason Spatola
    Member
    Posted 3 months ago #

    EDITED version - my first post had some incorrect stupidity in it.

    Calling it like this SEEMS to work.

    jQuery(document).ready(function ($) {
    
    	var myPhotoSwipe = $(".gallery").each(function(){
    	$(this).find(".gallery-item a").photoSwipe({ allowUserZoom:false, zIndex:'10000', captionAndToolbarShowEmptyCaptions:false });
    	});
    
    });

    I've got a custom version that adds NextGEN support (in tandem with native gallery support) - it seems to work as well.

    I'm sure you probably have a better solution, but in case this helps.........

  4. Dalton Rooney
    Member
    Posted 3 months ago #

    Looks pretty good to me. I'll give it a try and post an update if everything works.

    Cheers!
    Dalton

Reply

You must log in to post.

About this Plugin

About this Topic