Return to Snippet

Revision: 25113
at March 20, 2010 11:14 by sheena_d


Initial Code
function mytheme_links($links, $attributes = array()) {
  if (isset($links['blog_usernames_blog'])) {
    unset($links['blog_usernames_blog']);
  }
  return theme_links($links, $attributes);
}

Initial URL


Initial Description
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 http://drupal.org/node/731548#comment-2682062
This works for Drupal 6

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

Initial Tags
drupal

Initial Language
PHP