Adding Caption to images in Fotorama script

Topics related to client-side programming language.
Post questions and answers about JavaScript, Ajax, or jQuery codes and scripts.
mowgli
Posts: 9

Adding Caption to images in Fotorama script

Hello,
I use the Fotorama script for a slideshow images. How can I put caption in some photo? How it is possible using this script?
Thanks in advance.

Admin Posts: 805
Hi,
I'm not the person who made the Fotorama script, and because I not use it, I not know very well about its customization.
If you want to know more about the Fotorama script, see the Fotorama Full list of options.
- Also, check their API, and the other pages from the Customize menu in their site.

- From what I saw in their web site, you can use the data-caption="text..." attribute in the <img> tag to add a caption in the image.
- To change the caprion style, modify the css properties of the fotorama__caption class in the css file.