I’ve just run Google’s PageSpeed Insights across my website and it’s flagging that images don’t have ALT attributes. The majority of my images are within Galleria galleries.
In Lightroom I’ve got caption metadata recorded against each image - is there something I need to do to get the ALT attribute populated and recognised by Google?
Links to pages would help. We have alt attributes everywhere that I can think to put them. If they’re missing someplace, being able to see the page source code would help me to identify whatever issue you’re having.
I haven’t looked at the Galleria code in a long while, but if I remember correctly, images should be feeding into it as a data set, not static HTML, so I’m not sure Google would complain about those either way.
Thanks Matt, Photographer Shropshire - Photography & Video Production - A Decent Exposure
In the Galleria template I’ve tried turning on >Image info>Display Image Captions which displays the caption below the image but I don’t know how to check that’s populating the ALT attribute. Probably a setting I’ve missed somewhere.Running BL5.
Seems like Google/Lighthouse only whichever one image is on-screen at the time it scans the page, which makes sense I guess. That element does not have an alt
attribute. I can try to see whether I can update the Galleria theme to add it, but most of the presentation is built within Galleria’s internals, not by our implementation.
Worth noting that the Galleria JS was last updated in 2019. That’s them, not us. We haven’t updated our add-on in a while either, but mostly that’s because absolutely nothing has changed. Galleria seems to be a dead project.