NadineK
NadineK

Reputation: 131

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?

Upvotes: 11

Views: 12177

Answers (3)

maid450
maid450

Reputation: 7486

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

Upvotes: 14

Ivan Chaer
Ivan Chaer

Reputation: 7100

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>

Upvotes: 3

MonkeyButler
MonkeyButler

Reputation: 1

I got the same problem. Found out with Firebug that the div's are there but that the standard theme's CSS these blocks doesn't display.

So basicly remove line 76 from galleria.classic.css: display: none;

After this it still needs some tweaking to make it look good, but at least you know where the problem comes from.

Upvotes: 0

Related Questions