Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Next Gen Gallery : Captions not showing up on thumbnails


  #1  
Old Jul 28, 2012, 04:40 AM
shalinisridhar's Avatar
shalinisridhar
 
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 } ?>
</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
 
23,765 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
  #3  
Old Jul 28, 2012, 11:28 AM
lmilesw's Avatar
lmilesw
 
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 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 03:04 AM.


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