Add ability to display the title or alt as caption for thumbnails as well

Created on 16 August 2013, almost 12 years ago
Updated 21 July 2025, 10 days ago

I can add the caption for the main image, but when using a carousel as the pager, it would be super-awesome to be able to display the alt or title as a caption for each thumbnail. If this is already available, please let me know how to do this. It seems like it would be a pretty simple change since the alt and title are already rendered in the markup for each thumbnail.

A simple jQuery snippet does the trick, but would be a nice user config option.

$('.jcarousel-item img[title]').each(function(){
  var title = $(this).attr('title');
  $(this).after('<div class="carousel-img-title">' + title + '</div>');
});

Something like that.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States scotwith1t Birmingham, AL

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024