How to change Welcome, User in Welcome, username

Add this code to your functions.php file located in your theme folder, at the end of the file. You can also find the file in Appearance > Editor > Theme Functions (functions.php)

 function yit_change_welcome_username() {
  global $current_user;
  get_currentuserinfo();

  return $current_user->user_login;
}
add_filter( 'yit_welcome_username', 'yit_change_welcome_username' );

Remember when you will update the theme, you can leave the code inside this file.
If you need help in finding the file functions.php, please read this tutorial

Was this article helpful?
6 out of 6 found this helpful

Back to Help Center

Powered by Zendesk