Hi, This is instructions for adding titles to thumbs instead of captions. (I started to ask how, then figured it out so am just posting my hack.)
Background: I want to show the image title/name under my thumbnails rather than the caption, which is much longer (so, I did not want to use template=caption). I used to be able to do this in NextGen 1.4.3 this with a simple shortcode template=title, but it doesn’t seem possible any more.
After upgrading to NextGen gallery 1.9.6, the shortcode template=title doesn’t appear to be supported, and I could find no reference to it in the documentation – let me know if I’m missing something, or if the shortcode be reinstated 😉
So, I edited the template file gallery-caption.php (via FTP, wp-content/ plugins/ nextgen-gallery / view and modified line 47 from:
<span><?php echo $image->caption ?></span>
<span><?php echo $image->alttext ?></span>
and in my WP page I DO now use the template=caption shortcode, and that works for me! (it is on our Artboard gallery page)
TIP: Your image thumbnail alttext/titles and descriptions are managed in the WP-admin Gallery > Manage Gallery and need to be added for each image.
If you have a better/alternative approach, please let me know.
- The topic ‘How to add thumbnail titles instead of captions’ is closed to new replies.