Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

Next Gen Gallery : Captions not showing up on thumbnails

Old Jul 28, 2012, 05:40 AM
shalinisridhar's Avatar
18 posts · Sep 2010
I am using Nextgen gallery to display some images on my website. I would like to use "Alt & Title Text" as display for captions under each thumbnail

I used the shortcode [nggallery id=2 template=caption] to call a gallery from a page.

From reading various posts, I have also edited the gallery-caption.php with this code:

<!-- Thumbnails -->
<?php foreach ( $images as $image ) : ?>

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

Is the above code correct? Am i missing something somewhere? I still do not see the captions show up on the thumbnails on the page.

I am using WP - 3.4.1, NextGen Gallery version 1.9.5 and Atahualpa version 3.7.7

Thanks in advance for your help
Old Jul 28, 2012, 05:59 AM
juggledad's Avatar
23,761 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you should ask the developer of NextGen this type of question.
if you get it wo work with, say twenty-eleven and it won't work with Atahualpa then ask here, but the place to ask questions about a plugin it to the plugin's author.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Jul 28, 2012, 12:28 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
I just add template=caption and get the caption.

Did you test before editing gallery-caption.php ?

Have you tried reverting gallery-caption.php to the original code to test?

I also tried the code you mentioned and it just places the alt/title text instead of the description under the thumbnail.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Last edited by lmilesw; Jul 28, 2012 at 12:33 PM.


alttext, caption, nextgen gallery, thumbnail, title

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Captions Showing in Excerpts - Is there a way to remove them? adum Excerpts, Read more, Pagination 4 Oct 5, 2010 06:41 AM
[SOLVED] Thumbnails not showing up in Excerpts pascalel Excerpts, Read more, Pagination 1 Jul 8, 2010 12:19 AM
[SOLVED] Page thumbnails not showing on pages? freelancekonsulenten Center area post/pages 4 May 3, 2010 06:19 AM
Showing NextGen Gallery in excerpts adelante Excerpts, Read more, Pagination 1 Jul 21, 2009 08:17 AM
gallery (grid) of post excerpts w/ thumbnails viewdesigninc Atahualpa 3 Wordpress theme 1 Jun 4, 2009 09:08 AM

All times are GMT -6. The time now is 04:34 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.