Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting captions on Galleria photo gallery

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?

like image 302
NadineK Avatar asked Jan 13 '11 06:01

NadineK


2 Answers

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

like image 103
maid450 Avatar answered Oct 30 '22 12:10

maid450


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>
like image 37
Ivan Chaer Avatar answered Oct 30 '22 12:10

Ivan Chaer