SolvIT Solutions
Please Login or Register

Knowledgebase

How to change the default Howdy welcome message in admin to a custom message

To achieve this, copy and paste the code below at
the end of your current theme's functions.php file located in /wp-content/themes/yourtheme/functions.php

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 );


Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article


Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter