Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Next Gen Gallery : Captions not showing up on thumbnails


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jul 28, 2012, 04:40 AM
shalinisridhar's Avatar
shalinisridhar
 
18 posts · Sep 2010
Next Gen Gallery : Captions not showing up on thumbnails

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 } ?>
</a>
<span><?php echo $image->alttext ?></span>
</div>
</div>


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
  #2  
Old Jul 28, 2012, 04:59 AM
juggledad's Avatar
juggledad
 
20,148 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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.
  #3  
Old Jul 28, 2012, 11:28 AM
lmilesw's Avatar
lmilesw
 
9,474 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 11:33 AM.

Bookmarks

Tags
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 05:41 AM
[SOLVED] Thumbnails not showing up in Excerpts pascalel Excerpts, Read more, Pagination 1 Jul 7, 2010 11:19 PM
[SOLVED] Page thumbnails not showing on pages? freelancekonsulenten Center area post/pages 4 May 3, 2010 05:19 AM
Showing NextGen Gallery in excerpts adelante Excerpts, Read more, Pagination 1 Jul 21, 2009 07:17 AM
gallery (grid) of post excerpts w/ thumbnails viewdesigninc Atahualpa 3 Wordpress theme 1 Jun 4, 2009 08:08 AM


All times are GMT -6. The time now is 08:58 AM.


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