Title: Problem changing sidebar widget&#039;s page title
Last modified: August 21, 2016

---

# Problem changing sidebar widget's page title

 *  Resolved [danny_dinero](https://wordpress.org/support/users/danny_dinero/)
 * (@danny_dinero)
 * [13 years ago](https://wordpress.org/support/topic/problem-changing-sidebar-widgets-page-title/)
 * Hi,
 * I would like to change the TML sidebar widget’s page title from “Welcome, <username
   >” to just “<username>”. I followed the instructions in this thread [, but using this method also seems to change the sidebar widget’s “logout” link to whatever you have set as the page title.](http://wordpress.org/support/topic/plugin-theme-my-login-how-to-change-the-sidebar-widgets-welcome-greeting?replies=5)
 * Can anyone point me in the right direction as i am having no luck searching for
   a solution?
 * Thanks
 * [http://wordpress.org/extend/plugins/theme-my-login/](http://wordpress.org/extend/plugins/theme-my-login/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [13 years ago](https://wordpress.org/support/topic/problem-changing-sidebar-widgets-page-title/#post-3727131)
 * [My response](http://wordpress.org/support/topic/plugin-theme-my-login-how-to-change-the-sidebar-widgets-welcome-greeting?replies=5#post-3343752)
   in that thread is the same response now.
 *  Thread Starter [danny_dinero](https://wordpress.org/support/users/danny_dinero/)
 * (@danny_dinero)
 * [13 years ago](https://wordpress.org/support/topic/problem-changing-sidebar-widgets-page-title/#post-3727197)
 * Hi,
 * I used your code, and it does change the title, but it removes the username and
   also changes the logout link. Have a look at my screenshot [here](http://www.bluebullet.com.au/images/Capture.jpg)
 * Could this be a theme related issue?
 * Thanks
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [13 years ago](https://wordpress.org/support/topic/problem-changing-sidebar-widgets-page-title/#post-3727216)
 * This should do it:
 *     ```
       function tml_title( $title, $action ) {
       	if ( is_user_logged_in() && 'login' == $action )
       		$title = sprintf( 'Hi, %s', wp_get_current_user()->display_name );
       	return $title;
       }
       add_filter( 'tml_title', 'tml_title', 10, 2 );
       ```
   
 *  Thread Starter [danny_dinero](https://wordpress.org/support/users/danny_dinero/)
 * (@danny_dinero)
 * [13 years ago](https://wordpress.org/support/topic/problem-changing-sidebar-widgets-page-title/#post-3727224)
 * Perfect! Thank-you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem changing sidebar widget's page title’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [danny_dinero](https://wordpress.org/support/users/danny_dinero/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/problem-changing-sidebar-widgets-page-title/#post-3727224)
 * Status: resolved