Change the ‘Howdy’ in WordPress Admin bar

When you log into your WordPress dashboard, you are greeted with a simple ‘ Howdy, Username’ message in the top right hand corner of your admin bar.While it’s fun and friendly, you may not be a fan of the word Howdy, or may want something more corporate for a client. So how do you go about changing it? It’s actually quite easy as long as your willing to copy and paste a bit of code.

Open your functions.php  ( it might also be called Theme Functions depending on your theme)  file in the Editor (from the dashboard simply navigate  to Appearance > Editor) then copy and paste the following into the file:

1
2
3
4
5
6
7
8
9
add_filter( 'body_class', 'twentyeleven_body_classes' );
add_filter('gettext', 'change_howdy', 10, 3);
function change_howdy($translated, $text, $domain) {
if (!is_admin() || 'default' != $domain)
return $translated;
if (false !== strpos($translated, 'Howdy'))
return str_replace('Howdy', 'Welcome', $translated);
return $translated;
}
add_filter( 'body_class', 'twentyeleven_body_classes' );
add_filter('gettext', 'change_howdy', 10, 3);
function change_howdy($translated, $text, $domain) {
if (!is_admin() || 'default' != $domain)
return $translated;
if (false !== strpos($translated, 'Howdy'))
return str_replace('Howdy', 'Welcome', $translated);
return $translated;
}

If  ’Welcome’  isn’t  your cup of tea either, you can replace it with any word or phrase you like, just make sure you have single quotes around it.

Here is the before look:

Admin bar default greeting

 

 

And the very subtle change I made to the wpteach admin bar:

 

 

Go ahead and have some fun with this, cause you deserve to be greeted the way you want to be!


Category: Tutorials, Use

Comments (1)

Trackback URL | Comments RSS Feed

  1. HeyDaveCole says:

    Ha! That's a clever little patch. Thanks for sharing! We've got a dashboard widget that tells our plugin users "You're cool!" and people love that little touch of attention. ;)

    Though, if you've hung out with Matt Mullenweg, you definitely get the impression that he uses "Howdy" in regular conversation as well.

Leave a Reply