WordPress.org

Ready to get started?Download WordPress

Forums

Adding class to gravatar img (1 post)

  1. Orevan
    Member
    Posted 1 year ago #

    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 ??

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags