Replace "add new comment" link with image in Drupal

2.1k Views Asked by At

Is there an easy way to convert Drupal "add new comment" link into an "add new comment" gif image?

Syntax that adds link appears to be

 <?php if ($links): ?>
    <div class="links"><?php print $links; ?></div>
 <?php endif; ?>
2

There are 2 best solutions below

0
On BEST ANSWER
0
On

$links is built in your template.php and modules can add to it.

$links is a <ul> and that particular link is <li class="comment_add">

you can use css to give li.comment_add a{background=..} and use a str_replace in one of your themename_node_preprocess(&$vars) and remove "Add new comment" from $vars['links']