Many like me use Drupal's multi-user blog out of convenience and in preparation for use later. But what if you are the only blogger? That link to the blog showing dozens of times on the front page is very unsightly. Even if you have hundreds of blogger's it's still a little ugly. In Drupal 6 you could unset the array element in the template.php file. But this does not work in Drupal 7.
I am going to remove this link using the template node--blog.tpl.php because it's more generic than using template.php. This way I can throw the file into any theme and have it work without changing a function name. I also recommend doing it this way rather than using a module like contemplate which is database dependant. That along with the little known fact that using fewer modules in Drupal is a good thing. Better to do small tasks like this with the very little code rather than loading your installation with another module.
//node--blog.tpl.php if($teaser) { // if(isset($content['links']['blog']['#links']['blog_usernames_blog'])) { //remove the link from the array unset($content['links']['blog']['#links']['blog_usernames_blog']); } print truncate_teaser(render($content), 300); } else { print render($content); }
Notice that I don't remove the link from the full node view. Because the full node view is the place where I think the link is most appropriate. Don't forget to empty your cache!
Just for reference here's the Drupal 6 code:
// template.php function drupal_se_html5_links($links, $attributes = array()) { // Hide username’s blog if (isset($links['blog_usernames_blog'])) { unset($links['blog_usernames_blog']); } return theme_links($links, $attributes); }
