Home Forums WoodMart support forum Gallery Lightbox Caption

Gallery Lightbox Caption

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #243905

    benrich
    Participant

    A question.. In WoodMart’s image gallery, why are the lightbox image caption based on the image titles and not the image captions?

    It should be the captions no?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #244097

    Hello,

    Please find this file: inc/integrations/elementor/elements/class-images-gallery.php

    Find this line:

    $title = trim( strip_tags( $attachment->post_title ) );

    Replace it with this line:

    $title = wp_get_attachment_caption( $image['id'] );

    Best Regards

    #244271

    benrich
    Participant

    Hi Elise. Thanks for the reply.

    This is great but of course I don’t want to be updating core files. I’ve had a look at that bit of code and I can’t see a way of using a filter.

    I imagine changing this in a future update isn’t as simple as changing that code, as it would effect everyone relying on the attrachment title. Perhaps an option (in the widget) that allows the user to pick between the two?

    I only suggest it because it really feels like the caption should be used for the caption 🙂

    Thanks again

    #244423

    Hello,

    We shall consider changing this feature, however, we do not promise to implement it in the nearest feature.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)