WordPress.org

Support

Support » Themes and Templates » [Resolved] Help me add a "alt" attribute in this code.

[Resolved] Help me add a "alt" attribute in this code.

  • I want that my gravatars have the “alt” attribute in the image. what should i change? this is my template code:

    <div class="comment-author vcard">
             <?php echo get_avatar($comment,$size='50',$default='' ); ?>
    		<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"> <?php comment_date('n-j-Y'); ?></a>
          </div>

    thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Help me add a "alt" attribute in this code.’ is closed to new replies.
Skip to toolbar