WordPress.org

Ready to get started?Download WordPress

Forums

Add Local Avatar
alt tag on image (2 posts)

  1. greatwitenorth
    Member
    Posted 8 months 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 7 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags