Display logged in user in header top bar

  • Anonymous

    #2103

    Syahir

    Congrats on developing a wonderful theme. After trying many, I am using Graphene for a team intranet site of ours. Access is limited to users who login with a username & password.

    When a user logs in, I would like to display on the top right of the header top bar, you are logged in as [user_id]. Is there an easy way to accomplish that? If not, can you please add that to the next release?

    Best regards,

    Admin

    Syahir Hakim

    #18656

    If you’re using WordPress version 3.2 and above, you should already have an “admin bar” that displays the logged in user’s name.

    14y8mzl.png

    Anonymous

    #18659

    Syahir

    I am hiding the admin bar and blocking access to wp_admin. These are very non techie user who can get confused. Would be good to show it on top bar. It’s a nice to have feature, not a show stopper.

    Admin

    Syahir Hakim

    #18660

    You can do it yourself using the Action Hooks Widget Areas option together with the PHP Code Widget. See my blog post about this feature here: http://www.khairul-syahir.com/topics/web-dev/2011/graphene-theme-feature-highlight-action-hooks-widget-areas.html

    Anonymous

    #18661

    Syahir

    Thanks very much. I got it done. Also learnt about Action Hooks.

    Best regards,

Viewing 5 posts - 1 through 5 (of 5 total)

  • You must be logged in to reply to this topic.