Can’t add class with get_avatar
-
Hello,
Avatar Manager is great, but I have an issue as I’m trying to build my own theme for my website.
Whenever I use the get_avatar method, I can’t add a class to the generated image like I should.For instance, this doesn’t work, the class “rounded-circle” doesn’t get added to the img:
get_avatar( $comment, $args['avatar_size'], '', '', array( 'class'=>"rounded-circle" ) )
Thanks for reading me,
Hope this’ll get fixed ??
- The topic ‘Can’t add class with get_avatar’ is closed to new replies.