• Resolved eugenem

    (@eugenem)


    galleryItems.push({
    src: element.getAttribute('href'),
    msrc: msrc,
    width: element.getAttribute('data-lbwps-width'),
    height: element.getAttribute('data-lbwps-height'),
    title: title,
    exif: exif,
    el: element,
    tabindex: tabindex,
    alt: element.firstElementChild.getAttribute('alt')
    });

    I propose to update the integration so that it would take ALT from the image. This way large image will have ALT as well. Now it always has the empty ALT.

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

    (@awelzel)

    The ALT attribute is used as caption when you enable the option “Alternative text” in the backend caption settings. Also see the screenshots.

    Also keep in mind that there is no “large” image, just the image itself. All image sizes are created by WordPress based on one single image.

    • This reply was modified 1 week, 2 days ago by Arno Welzel.
    • This reply was modified 1 week, 2 days ago by Arno Welzel.
    • This reply was modified 1 week, 2 days ago by Arno Welzel.
    Plugin Author Arno Welzel

    (@awelzel)

    Sorry, this was a misunderstanding. You refer to the ALT in the lightbox itself. I created an issue for this and will add this in the next update.

    https://codeberg.org/askaaron/lightbox-photoswipe/issues/113

    • This reply was modified 1 week, 2 days ago by Arno Welzel.
    Plugin Author Arno Welzel

    (@awelzel)

    Release 5.8.4 adds support for ALT attributes in lightbox element for PhotoSwipe 5.

    Please note that PhotowSwipe 4 is outdated and will be removed soon.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.