Paula We are customizing a theme and stuck into a strange issue when adding an additional class to the avatar image with get_avatar() function. I checked the get_avatar() documentation on the wordpress site and applied similar. But the class is not adding to the avatar image. get_avatar( $current_user->user_email, 128, null, null, array('class' => array('img-responsive', 'img-rounded') ) );
James A few months back the same issue occurred with me. Could you try with this. get_avatar( $current_user->user_email, 128, $default, $alt, array('class' => array('img-responsive', 'img-rounded') ) );
Paula Strange but this solved the issue. $default = 'avatar_default'; $alt = 'My Avatar'; get_avatar( $current_user->user_email, 128, $default, $alt, array('class' => array('img-responsive', 'img-rounded') ) );