Support » Plugins » NextGen Fancybox: show image title AND description

  • Hi.

    I’ve installed NextGen (2.0.59) and tested the included lightboxes, but none of the six available lightboxes shows the title as well as the description of the image.

    I found some tips but guess, I didn’t get something right.

    Changing the code in gallery.php (line 42) oder singlepic.php has no effect.

    <div class="ngg-gallery-thumbnail" >
    			<a href="<?php echo nextgen_esc_url($image->imageURL) ?>"
                   title="<?php echo esc_attr($image->description) ?>"
                   data-src="<?php echo nextgen_esc_url($image->imageURL); ?>"
                   data-thumbnail="<?php echo nextgen_esc_url($image->thumbnailURL); ?>"
                   data-image-id="<?php echo esc_attr($image->pid); ?>"
                   data-title="<?php echo esc_attr($image->alttext); ?>"
                   data-description="<?php echo esc_attr($image->description); ?>"
                   <?php echo $image->thumbcode ?> >
    				<?php if ( !$image->hidden ) { ?>
    				<img title="<?php echo esc_attr($image->alttext) ?>" alt="<?php echo esc_attr($image->alttext) ?>" src="<?php echo nextgen_esc_url($image->thumbnailURL) ?>" <?php echo $image->size ?> />
    				<?php } ?>

    I thought this line
    title="<?php echo esc_attr($image->description) ?>" would be the answer, but it isn’t.

    How/ where does the lightbox (I would prefer Fancybox) grabs the information? What do I need to change?

    The site is:

    Thanks in advance,

  • The topic ‘NextGen Fancybox: show image title AND description’ is closed to new replies.