WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Remove captions from imagebrowser's lightbox display? (3 posts)

  1. TomJohnson
    Member
    Posted 6 years ago #

    I'm using the imagebrowser function of the NextGen Gallery. The descriptions appear below the photos. When the photo is clicked, the descriptions also appear in the caption of the lightbox-displayed photo. Some of my descriptions are very long and this causes problems in the lightbox display. How do I remove the captions from the lightbox display?

    Tom

  2. monodistortion
    Member
    Posted 6 years ago #

    That is part of the Lightbox 2 javascript code so I think you would have to change that. It takes the title="" attribute and puts that into the caption.

    Your first option would be to not use the title attribute but the NextGen Gallery uses that. Your other option would be to change the Lightbox 2 javascript. I'm not a javascript expert by any means but I believe the relevant code is on line 218:
    this.imageArray.push([imageLink.href, imageLink.title]);
    and line 223:
    collect(function(anchor){ return [anchor.href, anchor.title]; }).

  3. TomJohnson
    Member
    Posted 6 years ago #

    Thanks for your help with this.

Topic Closed

This topic has been closed to new replies.

About this Topic