Posted By

sheena_d on 03/20/10


Tagged

drupal theming 6 E4H Workshop


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

screamwork


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


 / Published in: PHP
 

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

  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  

Comments

RSS Icon Subscribe to comments
Posted By: discipolo on February 16, 2011

also works for D7!

You need to login to post a comment.