Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    My response in that thread is the same response now.

    Thread Starter danny_dinero

    (@danny_dinero)

    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

    Could this be a theme related issue?

    Thanks

    Plugin Author Jeff Farthing

    (@jfarthing84)

    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

    (@danny_dinero)

    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.