Show default avatar on top menu

Posted in: Newsmag
Post count: 28

Hi,

I tried messing with the top menu part where there is the “signin / join” text link. I’d like to have a 20×20 default avatar displayed with the text when a user is not yet logged in. So it looks more fluid before a user is actually logged in and then displays their own avatar as usual.

How can I add the default avatar to this part:

echo ‘<ul class=”top-header-menu td_ul_login”><li class=”menu-item”>‘ . __td(“Log in / Join”) . $td_user_join . ‘<span class=”td-sp-ico-login td_sp_login_ico_style”></span>

Thank you!

Post count: 6600

Hi,

You can add and icon like this: http://screencast.com/t/yDmOztPVct and add a class to it and style it via css.
ex:
<img src="https://cdn0.iconfinder.com/data/icons/app-tab-bar-icons-for-ios/20/Key.png" alt="alt" height="20" width="20">
Result: http://screencast.com/t/zocu6DbwVP8

Thanks

  • This reply was modified 11 years by Lucian.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.