Metadata – Description
-
Hi,
I need to display the long description below the Caption in a separate line. The description could be pretty long in some cases. These should be pulled from the database.
Is it possible to achieve this?
The page I need help with: [log in to see the link]
-
So far using descriptions in the caption is not implemented yet. But I can add this for the next udpate.
Thanks. That will be very nice.
When you do include this option, please also include a separate option for disabling this on smaller screens (phones).
What exactly? A box with description next to the picture?
Yes, Title/Caption and Description.
Hi Arno,
Any update on this functionality?
Sorry for the delay – I still work on that, but I didn’t finish it yet. I try to add this for the next update.
Thanks Arno.
Descriptions are now supported with Release 2.75.
If you want to style them in a different way or hide them in mobile view, use the CSS class
.pswp__description. The description is added in the caption area like this:<div class="pswp__description">...</div>Also note, that you have to enable the use of descriptions in the backend. This is not done by default.
Loads of thanks Arno.
Will have a look and come back if I need further help.
Pl. keep up the good work.
Hi Arno,
The descriptions are working just fine. I have been able to style them for font-size and width of display etc.
However, is there a way to display the caption/description elsewhere, say on the right hand side of the picture, instead of at the bottom?
This is not possible since this would require changing the whole layout of Photoswipe.
As always – pull requests are welcome: https://github.com/arnowelzel/lightbox-photoswipe
Okay.
Hope that in future if you are doing a major rewrite, you will take this into account.
The topic ‘Metadata – Description’ is closed to new replies.