WordPress.org

Ready to get started?Download WordPress

Forums

Gallery
[resolved] Infinite Scrol + Gallery (2 posts)

  1. luisribas
    Member
    Posted 1 year ago #

    friends,
    Does anyone know how to load the function "Lightbox"
    when a gallery is loaded a "Infinite Scrol"
    all loaded posts do not open the expansion photo.

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

  2. luisribas
    Member
    Posted 1 year ago #

    solved! just add this code in Infinite Scrol

    (function($){
    			$(document).ready(function(){
    				$("a[rel=gallery_fancybox]").fancybox({
    					'transitionIn'		: 'elastic',
    					'transitionOut'		: 'elastic',
    					'titlePosition' 	: 'inside',
    					'speedIn'					:	500,
    					'speedOut'				:	300,
    					'titleFormat'			: function(title, currentArray, currentIndex, currentOpts) {
    						return '<span id="fancybox-title-inside">' + (title.length ? title + '<br />' : '') + 'Image ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span><br /><a href="'+$(currentOpts.orig).attr('rel')+'" target="_blank">Download High resolution image </a>';
    					}				});
    			});
    		})(jQuery);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic