You can do it in the CSS. Something like:
.infoAndActions ul li.comment_add,
.infoAndActions li.comment_comments {
  background: url(/sites/all/themes/forresterblogs/images/infoAndActions_commentCount.gif) no-repeat left 8px;
  padding-left: 29px;
  margin-left: .3em;
}

 

Nancy

 

Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.




From: Salvatore De Paolis <iwkse@gmx.com>
To: development@drupal.org
Sent: Thu, November 18, 2010 1:30:30 PM
Subject: [development] Altering links

Hi all,

I need to alter some node links, in the specific I'd like some icon near
comment link.
Right now I'm doing it using the hook, link_alter but since it's basically
something related to the theme, I'd like to do it within the theme.

I'm trying with template_preprocess_block but it does not seems ti work.

Code looks briefly like:

$node = $vars['node'];
$node->links['comment_comments']['title'] = '<img src="foo"/>';
..
$vars['links'] = $node->links;

I suppose this is not the correct way, any hints?

regards