Product gallery, variant images and thumbnails
Compare the product’s post image with the gallery images. A well-kept main image text does not automatically correct missing alternatives in the gallery.
Compare product main image, gallery and the image of the selected variant. In block themes, the gallery component determines its presentation; classic customizer settings do not automatically apply to every gallery block.
How to fix the issue in WooCommerce
- Open product image, gallery and the image of the affected variant. Check the specific image reference and your media library information. When changing variants, the new image output must also have a suitable alternative and a reserved display space.
- Set the alternative text on the image or image block that is actually rendered. Describe its purpose in context; decorative images use alt="". A filename or title attribute does not replace alt.
Start with one affected page or template. Check its output before applying the correction to other pages.
Example of this specific finding
Illustrative control case: An image explains the connection of a device but does not have an alt attribute. A purely decorative background wave, on the other hand, does not contain any additional information.
<img src="anschluss.webp" alt="Netzkabel am linken Anschluss einstecken">
<img src="dekorative-welle.svg" alt="">
follow-up audit in WooCommerce
Change gallery and variant selection mobile test. Actually check loaded size, alternative text and reserved area for each view.
Provide a concise suitable alternative for the informative image. Decorative img elements with empty old; take into account the link function for linked images.
How to verify that the fix worked
Inspect the published img element and the accessible name of any linked image. A media-library change must also appear in the existing content block.
Check images and how they are embedded: Check image dimensions, alternative text and loading behaviour on the affected page types.
Derogations and scope
An empty old is intended for decorative pictures and may not be corrected as missing content.
Regarding: WooCommerce on WordPress. Block and classic product templates as well as SEO extensions can have different output locations.
Classify the general error
Definition, system-independent causes and further correction examples: Treat informal and decorative images separately
Configuration and test signal documentation
WooCommerce: Product Images and Galleries