[Resolved] How do I add the author's Gravatar image on the author box?

Home Forums Support [Resolved] How do I add the author's Gravatar image on the author box?

Home Forums Support How do I add the author's Gravatar image on the author box?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1049937
    Frank

    Hi,
    Any idea how I show the author’s gravatar on the “About the Author” box on posts? Mine currently shows a plain avatar.
    Thanks!

    #1049942
    Leo
    Staff
    Customer Support

    Hi there,

    This should help:
    https://en.gravatar.com/

    #1049965
    Frank

    Hi Leo,
    I already have a gravatar… how do I get the GeneratePress theme to pick it up?
    Thank!

    #1049971
    Leo
    Staff
    Customer Support

    It should pick it up by default.

    Have you tried doing this first?
    https://www.screencast.com/t/VCxfdIgJTzz

    If that doesn’t help then try disabling all plugins except GP Premium.

    #1051465
    Frank

    Did the above and disabled every plug-in except GP Premium and still not seeing the gravatar.

    #1051473
    David
    Staff
    Customer Support

    Hi there,

    go to Appearance > Elements and edit the Author Box Hook. Find this line:

    <div class="avatar"><?php echo get_avatar( get_the_author_meta( $author_id )); ?></div>

    And change it to:

    <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' )); ?></div>

    #1051499
    Frank

    That worked! Thanks!

    #1051507
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.