simple-lightbox icon indicating copy to clipboard operation
simple-lightbox copied to clipboard

Request: User Settings for Inclusion or Non-inclusion of title, alt, or caption Attributes

Open rickgordon opened this issue 10 years ago • 2 comments

Description of feature/request

The user settings interface (wp-admin/themes.php?page=slb_options) would have separate fields for inclusion (or non-inclusion) of title, alt, and caption attributes that are included in the Media metadata for the image. Right now, caption is enabled by default, and if there is no caption, the title is included.

An additional section pane, entitled "Text Inclusion" should be included, with checkbox settings for "Include Title", "Include Alt Text", and "Include Caption":

**Text Inclusion**

    Include Caption
        Only if included in post (Default: Enabled)
        If in image metadata but not included in post (Default: Enabled)

    Include Title (if there is no caption)
        Only if included in post (Default: Enabled)
        If in image metadata but not included in post (Default: Disabled)

    Include Alt Text (if there is no caption or title)
        Only if included in post (Default: Disabled)
        If in image metadata but not included in post (Default: Disabled)

This feature would be used to

Give more user control over the text included in the lightbox.

If you added this feature, I would:

Personally, I would disable all three elements if they are only included as image metadata (i.e., show up in the Media panel description of the image, but are not in the image code on the post page). I would also disable title text and alt text from showing in the lightbox even when they are in the image post code, as within the context of the site I manage, this data is often irrelevant to the viewer.

rickgordon avatar May 15 '15 22:05 rickgordon

Thanks for the request :)

archetyped avatar May 15 '15 23:05 archetyped

Definitely would like to see this implemented for ALT-Texts. Since I started adding ALT texts to my photos the alt texts appear below the photos in the lightbox. In my case I would like to suppress this but only show a caption. I'd donate 5€ to have that implemented.

locked-fg avatar Dec 02 '23 20:12 locked-fg