Support » Plugin: Lightbox with PhotoSwipe » display caption

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    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.

    • This reply was modified 1 year, 5 months ago by Arno Welzel.
    • This reply was modified 1 year, 5 months ago by Arno Welzel.
    • This reply was modified 1 year, 5 months ago by Arno Welzel.

    I try add text to description but it not show

    thanks, i hope it will update short time

    • This reply was modified 1 year, 5 months ago by lienkhuong.
    Plugin Author Arno Welzel

    (@awelzel)

    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/

    Thanks

    Plugin Author Arno Welzel

    (@awelzel)

    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 div elements 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.

    Hix..Thanks

    Hi Arno,

    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>

    https://cs.wordpress.org/plugins/justified-gallery/

    • This reply was modified 1 year, 5 months ago by bighead73.
    Plugin Author Arno Welzel

    (@awelzel)

    @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.

    Thx.

    Good day!
    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.

    Plugin Author Arno Welzel

    (@awelzel)

    I just published an update (1.65) wich should handle captions properly.

    Unfortunately after updating I see this message 🙁

    Notice
    : Undefined property: LightboxPhotoSwipe::$show_caption in
    /…my web path…./plugins/lightbox-photoswipe/lightbox-photoswipe.php
    on line
    103

    • This reply was modified 1 year, 4 months ago by bighead73.
    Plugin Author Arno Welzel

    (@awelzel)

    Are you sure, you are using the latest version? Because this bug was fixed with 1.65.

    I’m sorry I thought I confirmed the update but I probably did not push the button.

    Thank you for updating. Have a nice day.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘display caption’ is closed to new replies.