
On many websites I create for small businesses, the site owner wants (and should have) a blog. Drupal’s blog tools are set up to be designed for multiple users by default. Many times, this is functionality I don’t want or need.
One glaring element that I typically want to remove if a blog is by a single user is the “username’s blog” link that appears in each blog post.
The following, foundĀ here, added to my theme’s template.php file, did the trick:
function mytheme_links($links, $attributes = array()) {
// Hide username’s blog
if (isset($links['blog_usernames_blog'])) {
unset($links['blog_usernames_blog']);
}
return theme_links($links, $attributes);
}
Change mytheme to the name of your theme, and remember to clear the cache after uploading the new template.php file.
