Do you want to replace the text with a link or just add an image next to the link text?
You could use CSS to define a background-image and then push the text to the left with a margin. This way you can show an imagine to the general public viewing your site but also hide it from other types of non-visual media browsers. Unless I'm misunderstanding what you're trying to accomplish. Todd On 18 November 2010 13:30, Salvatore De Paolis <[email protected]> wrote: > 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 >
