WordPress.org

Forums

Add Local Avatar
alt tag on image (2 posts)

  1. greatwitenorth
    Member
    Posted 1 year ago #

    I just had an SEO audit done on one of our sites and they pointed out that the alt tag on our avatars should really be changed to the author name. I changed line 1434 (I'm using v 12.0 of the plugin) to this:

    $avatar = "<img src='{$src}' class='{$class} avatar-{$size} avatar-default' height='{$size}' width='{$size}' style='width: {$size}px; height: {$size}px;' alt='" . $user->display_name . "' />";

    which inserts the authors display name as the alt tag. Can this be included in future updates?

    http://wordpress.org/plugins/add-local-avatar/

  2. chillmen
    Member
    Posted 1 year ago #

    Thank you for this, i'm agree should be included in next updates!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Add Local Avatar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags