How To Change Or Remove The Howdy Greeting Message On The WordPress User Menu Bar
Change Or Remove “Howdy”
The “Howdy” or “Howdy, user” greeting on WordPress is a staple of the world’s most popular content management system. Most, if not all WordPress users are greeted by this message on the top right of their administration menu bar every time they login. The howdy message is almost always visible for logged in WordPress users.
When introducing clients (or friends) to WordPress for the first time, one of the most common instant reactions I have noticed has something to do with the howdy greeting message from WordPress.
But what if you want to change “Howdy”, or even remove it all together?
Maybe you have a client you wish to impress, or you’re just utterly sick of seeing “Howdy” every time you login. Luckily WordPress is easily customizable and changing or removing the howdy text greeting from the WordPress admin bar is very simple.
The message we have setup in the code snippet below (instead of Howdy) is “Hello, welcome back!”
To change or remove the “Howdy” text in the WordPress admin bar edit or remove “Hello, welcome back!” (only) in the snippet below. Otherwise, using the snippet as we have written below will read “Hello, welcome back!”.
How to change the WordPress “Howdy” greeting
Copy and paste the code snippet below into your current theme’s functions.php file.
function replace_howdy( $wp_admin_bar ) { $my_account=$wp_admin_bar->get_node('my-account'); $newtitle = str_replace( 'Howdy,', 'Hello, welcome back!', $my_account->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $newtitle, ) ); } add_filter( 'admin_bar_menu', 'replace_howdy',25 );
Thank you! It worked fine.
Thanks!
Thanks, I don’t get why WordPress use the word Howdy despite being aimed at a global audience.
You rock.
Really Nice.. More helpful for the beginners like me…….
Nice! Thanks for this non-destructive code! Beautiful!