Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author adispiac

    (@adispiac)

    From the Profile Builder UI no, but you can easily do it via code using the wppb_login_message filter to change the logged in message.

    You could add something like this to your theme’s functions.php file:

    /* Display avatar when user is logged in on Login page and Widget*/
    function wppb_change_login_message( $logged_in_message, $user_ID){
    
        $new_message = get_avatar($user_ID, 40);
        $new_message .= $logged_in_message;
        return $new_message;
    }
    add_filter('wppb_login_message','wppb_change_login_message', 10, 3);
    Thread Starter RandomNick

    (@randomnick)

    Awesome!!! Thanks mate, for support and great plugin.
    Cheers

    Plugin Author adispiac

    (@adispiac)

    Glad I could help Nick! You can always support our work by leaving a review.

    Thread Starter RandomNick

    (@randomnick)

    Done ??

    Sanguinarius

    (@sanguinarius)

    Is that code above something that will end up getting overwritten during the next theme update?

    –Sangi the Frazzled

    Plugin Author adispiac

    (@adispiac)

    Yes, that’s correct. However you can create a child theme and place it in its functions.php file, or you can add the above code in an empty plugin like this one.

    These are the best practices for keeping your changes in place in case of an update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Gravatar in login widget’ is closed to new replies.