Captions are not supported yet by the plugin. This will be added with the next update.
Sorry – there was a misunderstanding. Of course captions are supported.
You have to add the caption within the images itself as “description”. These will be used for the lightbox as well.
However – when using captions in galleries, there seems to be bug. I’ll fix this with the next update.
I try add text to description but it not show
thanks, i hope it will update short time
- This reply was modified 3 years, 11 months ago by lienkhuong.
I just realized, that the captions in standard WP galleries should already work fine. Only “Cleaner Gallery” seems to be a problem. I already have a fix for that which I’ll be published within the next 24 hours.
What gallery plugin do you use?
Hi, i using standard WP galleries and betheme
you can check this link: https://midtown.phumyhung.com.vn/test/
Unfortunately, the is not the HTML from a standard WordPress gallery and therefore the Lightbox script can not recognize the image captions in it.
Original WP gallery HTML:
<dt class='gallery-icon portrait'> <a href='...' .../> <img ... /> </a> </dt> <dd class='wp-caption-text gallery-caption' id='...'>... caption here ...</dd>
However in your case, the structure is different with additional
divelements around the image:
<dt class='gallery-icon portrait'> <div class='image_frame scale-with-grid'> <div class='image_wrapper'> <a href='...' .../> <img ... /> </a> </div> </div> </dt> <dd class='wp-caption-text gallery-caption' id='...'>... caption here ...</dd>
Looks like “betheme” generates a different gallery output.
This means I have to intercept the gallery generation to add the caption at some place where the Lightbox script can read it. This will take a bit longer, sorry.
I very much appreciate your work. Plugin is great. I’ve been looking for him for a long time because I like PhotoSwipe, and I finally found him. Nice.
Would it be possible to implement showing captions imaging in conjunction with the Justifed Gallery plug-in? With this plugin show only one image caption from the whole gallery. Randomly. Sometimes first caption. Sometimes other caption. Everthing others all works great.
Thx for great job.
Part of code from Justified Gallery
<figcaption class=”dgwt-jg-caption”><span class=”dgwt-jg-caption__font–10″>Titulek</span></figcaption>
- This reply was modified 3 years, 10 months ago by bighead73.
@bighead73 For the next update I’ll try to implement a more generic way to deal with image captions. However since “Justified Gallery” also uses PhotoSwipe, there may be a conflict when using both plugins at the same time.
Yes I know about it, but unfortunately the lightbox in JG plugin works only in the with his gallery, not in single pictures on the page. That’s why I deactivated lightbox in the JG plugin and use only your lightbox that works great for all the pictures on the site.
It would be great if you managed to dictate but I understand that it is not quite easy to respond to all possibilities.
I use your wonderful plugin with FooGallery. But caption are not displayed. Look, please, and this moment. Perhaps it is not so difficult to fix.
I just published an update (1.65) wich should handle captions properly.
Unfortunately after updating I see this message 🙁
: Undefined property: LightboxPhotoSwipe::$show_caption in
/…my web path…./plugins/lightbox-photoswipe/lightbox-photoswipe.php
- This reply was modified 3 years, 9 months ago by bighead73.
Are you sure, you are using the latest version? Because this bug was fixed with 1.65.
- The topic ‘display caption’ is closed to new replies.