I am using Galleria and I would like to use the classic theme and have captions. Is that possible? If so how do I set it up?
Sure, the classic demo has captions (clicking on the top left i displays the caption), you only have to set the alt
and optionally the title
element of the img
tag and you are done.
If you don't see it ensure you set showInfo option to true
and if you want to display it all the time, search in the classic theme's js file this line:
// set this to false if you want to show the caption all the time:
_toggleInfo: true
and set _toggleInfo
to false
Found at Galleria's quick start page (works with the classic theme):
<div id="galleria">
<img src="/img/pic1.jpg" data-title="My title" data-description="My description">
<img src="/img/pic2.jpg" data-title="Another title" data-description="My HTML description">
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With