Support » Fixing WordPress » Link Gravatar to Commentor's Website

  • 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>
    	</div>

    …but when i wrap that in a href link it doesn’t work 😐

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

    http://www.unleashreality.com/

    Alex

  • The topic ‘Link Gravatar to Commentor's Website’ is closed to new replies.