Adding class to gravatar img
-
Hello,
I’ve been trying to use get_avatar to display the author’s gravatar under each post with applied class but I couldn`t find a way to add class=”pic-2″ to gravatar image code or even changing gravatar heigth and width to 100px and 77px respectively
<?php echo get_avatar( get_the_author_meta('ID'), 32 ); ?>
Any help guys ??
- The topic ‘Adding class to gravatar img’ is closed to new replies.