WordPress.org

Ready to get started?Download WordPress

Forums

NextGen + Fancybox: show image title AND description (1 post)

  1. laaika
    Member
    Posted 5 months ago #

    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 } ?>
    			</a>
    		</div>

    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: http://wieland.tzschilp.de/work-3/2012-2/

    Thanks in advance,
    anne

Reply

You must log in to post.

About this Topic