Change The WordPress Howdy Text

The best thing about WordPress is that you can custom everything, any bit of text you see on the WordPress dashboard can be change.

This means that if you are working on a client WordPress website you can change all text on the page to be customised to your client.

In this example we are going to change the Howdy Text in the top right of the WordPress dashboard.

Howdy Text

To change the howdy text in WordPress all you have to do is add the following code in the functions.php file to change the howdy text to...Hello, welcome back.

function replace_howdy( $wp_admin_bar ) {
    $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 );

Welcome Back

Back to top

Learn how to code with Treehouse

  • Learn projects with access to 1000+ videos
  • Practice live with our Code Challenge Engine
  • Get help in our members-only forums

Start with a 7 day free trial