Title: Gravatar Implementation Help
Last modified: August 18, 2016

---

# Gravatar Implementation Help

 *  [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/gravatar-implementation-help/)
 * Hello everyone,
 * I am trying to get gravatar working on my website, so that any users posting 
   comments who have a gravatar associated with their email address, will have their
   picture posted along with their comment.
 * I have downloaded the gravatar plugin for wordpress, from this site and installed
   it successfully.
    [http://site.gravatar.com/site/implement#section_2_2](http://site.gravatar.com/site/implement#section_2_2)
 * In the implementation section it gives examples of HTML to add in order to use
   the plugin… But I’m not sure -where- this code is supposed to be added.
 * The code to be added seems to be something like this.
 * `<?php gravatar("R", 40); ?>`
 * So, I would like to show the gravatar image for each poster, near their comment,
   assuming they have a gravatar registered.
 * Where would I insert the above code to get that done?
 * I assume it should go in the code which controls the comment output… But I’m 
   not sure where that is.
 * Thanks for any help on this! I’m a little lost.
 * – Harvey

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/gravatar-implementation-help/#post-533873)
 * Hey look what I found.
 * [http://codex.wordpress.org/Using_Gravatars](http://codex.wordpress.org/Using_Gravatars)
 * Still not exactly getting it though. I am using the ‘pool’ theme.
 * I’m looking in comments.php, and trying to find code similar to…
 *     ```
       <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
       <cite><?php comment_author_link() ?></cite> Says:
       ```
   
 * As mentioned in the codex…
 * No luck yet. If I get it, will post the answer and close for future reference
   😉
 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/gravatar-implementation-help/#post-533875)
 * I ended up insterting the gravatar code just before the line that looks like 
   this in the POOL theme.
 * `<li id="comment-<?php comment_ID() ?>" class="<?php echo $bg_comment; ?>">`
 * Hope this helps someone some day!
 *  [Andrew Scheidl](https://wordpress.org/support/users/adub/)
 * (@adub)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/gravatar-implementation-help/#post-534393)
 * Thanks Harvey for documenting you process of getting the Gravatar plugin working.
   You saved me some time and I appreciate it. Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Gravatar Implementation Help’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andrew Scheidl](https://wordpress.org/support/users/adub/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/gravatar-implementation-help/#post-534393)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
