Equip Slideshow Images with an ALT attribute

I have a very fastidious client who is adament on having an ALT attribute included for all images. This is exacerbate by what MDN declares in


and Lightbox report

The problem is that the Slideshow component does not facilitate adding the ALT attribute to images.

Please give this request a high priority!

Hi Ben, which component exactly are you referring to?

I assume he means Swiper, I often refer to it as a slider also.
An an ALT tag would ge really useful.

But what has the swiper to do with an alt tag?
The swiper component allows you to use any structure in its slides, not images only - any HTML structure. If you want to add images inside it, then you can add alt to them.
Or do i not understand your request?

I expect he means the Slideshow component. Adding Alt tags to images is a problem with this component, but should be an option.

1 Like

That’s why i asked:

:slight_smile:

Sorry, I have amended the subject line to show the Slideshow component.

(thanks @TomD)

I’ve updated the slideshow component to include an alt attribute on the image tags. It will use the slide title if available or an empty string if no title.

dmxSlideshow.zip (3.9 KB)

3 Likes

A big thank you. The quick reaction will surely surprise my client as it has done to me. :sunflower: :sunflower:

1 Like

Implemented in Wappler 5.4.3