Community & Support

How remove "username's blog" from $links

Hi,

how can I remove "username's blog" from node when using "print $links".
Or is there some $commentlinks that I can use to achieve same thing.
Thanks!

Comments

Override theme_links

It's a matter of theming. You has to override the theme_links function.
Here you can take a look of how to do this: http://drupal.org/node/44708

md - drupalcenter.de
--
http://mdwp.de

Wow, so there isn't any easy

Wow,

so there isn't any easy solution :)
If I do that I have to take care of "Read more", count numbers of comments - way too complex fo me.

Gimme CSS

In Drupal 5.1 (maybe earlier), each of those links has its own class. Try adding this to your theme's stylesheet:

.blog_usernames_blog { display: none; }

In my theme, that still left a little bit of space. I think it has to do with the whitespace between the list items. You can hack away at the space by adding a negative margin, though there may be a better way.

.blog_usernames_blog { margin-left: -1.5em; display: none; }

Obviously this doesn't make the links disappear for old browsers without css support, but then again, people with those browsers are probably used to seeing things much uglier than a "username's blog" link.

You deserve all the thanks

You deserve all the thanks and respect
You are a wonderful and amazing

nobody click here