Get Comment Reply Link Only?

I’m using comment_reply_link, for the reply links on every comment, but I want to use an image instead of text. I only need the link of the comment reply, not the whole thing. Codex wasn’t helpful, neither the WP forums.

<span class="reply">
  <a href="<?php //comment reply link here ?>">
    <img src="<?php bloginfo('template_url') ?>/css/images/reply-button.png" alt="" />
  </a>
</span>

Related posts

Leave a Reply

1 comment

  1. If you just need to replace the link text, add the image code as an argument:

    <?php 
    comment_reply_link( array ( 'reply_text' => '<img src="..." alt="Reply">' ) );
    ?>
    

    Otherwise see the source code for the way the URL is generated.