• Hi. I have big problems with validation of my website. W3c Validator find many of these errors:

    An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

    These errors are related to images inserted in tiles. These images have alt attribute correctly compiled. Someone can help me please?

    https://www.ads-software.com/plugins/wp-tiles/

Viewing 1 replies (of 1 total)
  • I have the same problem!
    You can edit the line #429 in the file
    /plugins/wp-tiles/src/WPTiles/WPTiles.php
    with this code:

    <img src='<?php echo $img ?>' alt='<?php echo $byline ?>' class='wp-tiles-img' itemprop="image" />

    Take a look here:
    https://www.lanaebiscotti.it/

    I have used the $byline variable configured as the title of the post in the plugin options. I think is possible also with $title variable.

Viewing 1 replies (of 1 total)
  • The topic ‘missing alt attribute w3c validation error’ is closed to new replies.