Link Gravatar to Commentor's Website (1 post)

  1. unleashreality
    Posted 5 years ago #

    Hey :)

    I'm trying to figure out how to link a commenter's gravatar to their website if they entered a url (and do nothing if they didn't) and i would like it to open in a new window (target="_blank").

    Currently, my comments.php template in the home directory is being driven by a comments.php function in my functions folder.

    The part that calls the gravatar, as far as i can tell, is

    <div class="avatar">
    		<?php echo get_avatar($comment,$size='64'); ?>
    		<span class="overlay"></span>

    ...but when i wrap that in a href link it doesn't work :|

    would REALLY appreciate the help as it's driving me bonkers!



Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by unleashreality
  • This topic is not resolved
  • WordPress version: 3.0.1