codecomputerlove/PhotoSwipe — Issue #242: HTML captions
Author: superlooper
Created: 2012-01-24 12:26:28+00:00
State: open

I'm an absolute beginner when it comes to JS unfortunately and have a deadline so no express JS courses sadly... Has anyone modified the script to support HTML captions? This is how my HTML is setup:

Some title

Credit: Unknown Photographer

Medium: silver gelatin photograph

Collection: lorem ipsum

Catalogue #: xxxxxxxx-xx

How would you grab the 'details' div and insert it into the caption area? And do this for multiple different images/details so they are linked up. I've narrowed it down to altering the getImageCaption function on line 2322 of the script but as I said, I'm a noob :( Would you have to give the details div an class for the styles and an id number so the script knows which image relates to which description? Appreciate any help or to hear from anyone who has successfully implemented HTML captions into this awesome almost perfect gallery