How to Remove Howdy From Admin Bar or Change to Welcome




How to Remove Howdy From Admin Bar or Change to Welcome

How to Remove Howdy From Admin Bar or Change to Welcome

Do you know howdy text meaning? HOWDY means "How Do You Do?" You will get this howdy text at WordPress admin bar as default. As a WordPress developer or blogger you have right to remove or change the howdy text with any custom welcome message for the admin users.

WordPress Change Howdy to Welcome

If you want to change Howdy to Welcome on your site, just Add the following code to the functions.php file of your WordPress theme.

function change_howdy($translated, $text, $domain) {
    if (false !== strpos($translated, 'Howdy'))
    return str_replace('Howdy', 'Welcome', $translated);
    return $translated;
}
add_filter('gettext', 'change_howdy', 10, 3);

Remove howdy from admin bar

If you want to remove howdy from admin bar just Add the following code to the functions.php file of your WordPress theme. It will Remove howdy from admin bar. 

function change_howdy( $wp_admin_bar ) {
 $my_account=$wp_admin_bar->get_node('my-account');
 $newtitle = str_replace( 'Howdy,', '', $my_account->title ); 
 $wp_admin_bar->add_node( array(
 'id' => 'my-account',
 'title' => $newtitle,
 ) );
}
add_filter( 'admin_bar_menu', 'change_howdy',25 );

If you need the howdy text back, You should delete the code snippets from your functions.php file.

Recommended: Change WordPress Login Logo, URL and Title to make your Wordpress blog professional.



leave a comment
Please post your comments here.

Search Free SEO Tools


Download SEO Tools Android App