Keeping it simple.
Currently tagClass is used for both the div output and img src resulting in the inability of the elements being addressed independently.
Please add an imgClass element to separate the two elements.
Original code:
# now display the avatar
$width = ($avatarData->size > 0) ? ” width=’$avatarData->size'” : “”;
$avatar = sp_build_avatar_display($avatarData->userId, “<img src='”.esc_url($avatarData->url).”‘ class=’$tagClass’$width alt=” />”, $link);
$avatar = “<div class=’$tagClass’>$avatar</div>n”;
Replacement code:
# now display the avatar
$width = ($avatarData->size > 0) ? ” width=’$avatarData->size'” : “”;
$avatar = sp_build_avatar_display($avatarData->userId, “<img src='”.esc_url($avatarData->url).”‘ class=’$imgClass’$width alt=” />”, $link);
$avatar = “<div class=’$tagClass’>$avatar</div>n”;
PS. How did you place the code in a container on the forum yesterday, which editor or tags, please