• Resolved emeraldwave

    (@emeraldwave)


    I have a page on my site with the foogallery shortcode inserted and noticed today that it fails the W3C Validation test with missing alt tag errors for all images, here’s the error:

    Error: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images:
    
    age-wrap"><img width="250" height="396" class="skip-lazy fg-image" data-src-fg="https://cdn.mydomain.com…my-image-url" /></span

    How can we fix this to make FooGallery add alt tags?

    • This topic was modified 3 years, 3 months ago by emeraldwave.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bradvin

    (@bradvin)

    hi @emeraldwave

    I can confirm that FooGallery already adds alt attributes to all img tags within the gallery.

    You can see this in the source here : https://fooplugins.com/foogallery/wordpress-responsive-image-gallery/

    Please make sure your attachments have ALT text within the media library

    Thread Starter emeraldwave

    (@emeraldwave)

    Thanks for those tips Bradvin. So I checked that further, and now I realize all of the images without tags have their URL showing them in a CACHE folder at /wp-content/uploads/cache/, (and I don’t see them in the Media Library), for example, this image:

    https://cdn.mydomain.com/wp-content/uploads/cache/2016/05/london-red-widgets/2997689972.jpg

    I’m using Autoptimize plugin for some caching/optimization but assume FooGallery works with that.

    What do you think? Appreciate any tips to resolve?

    • This reply was modified 3 years, 3 months ago by emeraldwave.
    • This reply was modified 3 years, 3 months ago by emeraldwave.
    • This reply was modified 3 years, 3 months ago by emeraldwave.
    • This reply was modified 3 years, 3 months ago by emeraldwave.
    • This reply was modified 3 years, 3 months ago by emeraldwave.
    Plugin Author bradvin

    (@bradvin)

    please link to your page with the gallery so we can take a look

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3C errors – Alt tags missing on all gallery images’ is closed to new replies.