Remove "username's blog" link from Drupal blog posts

/ Published in: PHP
Save to your folder(s)

Annoyed by the "username's blog" links on your single-author Drupal blog? Don't reach for "display:none;"! Don't remove the $links variable from your node template!

Just paste this code into your theme's template.php file. Be sure to replace "mytheme" in the function name with the machine-readable name of your theme.

courtesy of
This works for Drupal 6

Copy this code and paste it in your HTML
  1. function mytheme_links($links, $attributes = array()) {
  2. if (isset($links['blog_usernames_blog'])) {
  3. unset($links['blog_usernames_blog']);
  4. }
  5. return theme_links($links, $attributes);
  6. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.