treehouse : what would you like to learn today?
Web Design Web Development iOS Development

WordPress gravatars ?

  • Could anyone lead me through attaching an avatar to my profile in WordPress, I know this must be a basic procedure but having downloaded, installed and activated the Gravatar plug-in I just dont know where to go from here to select and attach an image ! :oops:
  • Doh !
    :oops:
    :oops:
  • You'll need a Gravatar account for yourself.

    http://en.gravatar.com/

    Once you have that setup, any blog, including your own, will use that graphic as your avatar.
  • Thanks Chris,
    I've opened an account with gravatar.com and uploaded an image to attach to my eMails, so that's sorted.
    I've downloaded the gravatar.php WP Plug-in and installed that to my WP site but dont know how to configure my comments-template to display the avatar(s) ?
    The WP Gravatar plug-in help page on the Gravatar site says:
    Remember that this only generates the URL, so you have to place the gravatar tag inside the src attribute of an img tag like so:
    ........then there is nothing else ?
    Anyone help ?
    Thanx
  • That is how you can place your gravatar images within your comment loop:

    <img src=\"<?php gravatar(\"R\", 40, \"URL-to-missing-gravatar-image\"); ?>\" alt=\"Gravatar\" />