WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] disable Cycle Nav (2 posts)

  1. mscheland
    Member
    Posted 1 year ago #

    Hi there - is it possible to disable the cycling of the images in a gallery?
    I.e. if the last picture is shown you only can go back instead of starting all over?

    Cheers

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. mscheland
    Member
    Posted 1 year ago #

    The solution is: there is no official solution :)
    So I've worked out a workaround by modifieing the updateNav() function:

    if (opts.activeImage != 0) {
    	$('#prevLink').show().click(function () {
    		changeImage(opts.activeImage - 1); return false;
    	});
    }
    if (opts.activeImage != (opts.imageArray.length -1)) {
    	$('#nextLink').show().click(function () {
    		changeImage(opts.activeImage + 1); return false;
    	});
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.