Hi,
I am using the “The Daily” theme which has a great image viewer/slider for media attached to an item. It however does not show any caption of the images when viewing the image. Any idea on how to add the media Title as the caption?
From what I understand, it uses lightslider to show the images and as far as I can see, it should be possible to add a transparant caption over the image. No idea on how to implement this however?
The data-sub-html attribute is what you need. Here I’ve populated it with the media’s display title. If you want to do an attribute like the media description, you could do data-sub-html="<?php echo $media->displayDescription(); ?>".
I’ll also make this into a future theme setting that can be accessed from the Omeka S admin.
@kim - I was too quick with my response. It does show the caption now, when you click the photo (media). I however lost the thumbnails of the different photos (media items) beneath the fotos.