How to add a class to Buddypress avatars in the Activity stream? [closed]

When calling bp_loggedin_user_avatar(), you can set the ‘html’ attribute to false and it will return just the URL of the avatar (instead of the full HTML). Then you can style it how you want.

Something like:

$avatar_url = bp_loggedin_user_avatar( 'html=false' );
echo '<img class="media-object" src="https://wordpress.stackexchange.com/questions/157817/. $avatar_url ." width="' . bp_core_avatar_thumb_width() . '" height="' . bp_core_avatar_thumb_height() . '"/>