Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pajohns

    (@pajohns)

    Hi Jejani,

    I’m not using a premium theme – made it myself, so pretty basic functionality. Apart from styling your div with the gravatar as a bkg image the way you’ve done it is similar to how I ended up getting it to work. The code I used is:

    <?php $authorHash = md5(get_the_author_email());
    $authorHash = trim($authorHash);?>
    <div class="post-thumb mb-0"><img class="img-thumbnail" src="http://www.gravatar.com/avatar/<?php echo $authorHash; ?>?s=128" width="128" height="128" /></div>

    I’ll incorporate styling the div background, however what I’m wondering is why we can’t use the get_avatar function that wordpress provides. I mean it does work, but the quality is terrible!

    Thread Starter pajohns

    (@pajohns)

    Oh the site is http://www.vulvodynia.com.au

    PJ

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