Support » Fixing WordPress » How to add user name and avatar in top menu

  • Hello experts,
    I was just wondering if anyone knows how to place a login user name and user avatar on the top menu bar as like wordpress admin bar?

    I’m using jarida theme

    Thanks

Viewing 1 replies (of 1 total)
  • You could use get_currentuserinfo() and get_avatar().

    `
    <?php global $userdata;
    get_currentuserinfo();
    echo ‘Username: ‘ . $userdata->user_login;
    echo get_avatar( $userdata->ID, 256); ?>
    `

Viewing 1 replies (of 1 total)
  • The topic ‘How to add user name and avatar in top menu’ is closed to new replies.