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>
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.
© 2022 - 2024 — McMap. All rights reserved.