I want to install the PhotoSwipe gallery script using jQuery, applied the description from the bottom, from the top (added text <h3>Описание</h3> ) between the tags </a><h3>Описание</h3><a> When the script does not work . But unfortunately after that the script stops working and nothing comes off and does not increase. The page to the script gallery: http://photoswipe.com/ Write me why when adding tags for the description of pictures, the script immediately stops working and how to do that, so that you can add a description while the script worked in normal mode? On the main page of photoswipe.com there is a gallery of images, if you try to add a description in the console for developers (Google Developers console from browsers), then it will stop working. I uploaded this script github.com/dimsemenov/photoswipe for my site, I connected everything, I just couldn’t understand how to add a description to the gallery. He spent the whole day and everything to the cat under the mudu ... Thank you in advance!

    1 answer 1

    The text of the description must be enclosed in the <figure> and inserted all this inside the <a> tag next to <img>

     <a> <img> <figure>Описания</figure> </a>