Hello, I use the NewsMag theme and I am satisfied. There is a small detail that I crumpled. I would like to add link to profile the user name that appears in the top bar in place Sign in / Register. Can you help me ? Thank you
Here’s what I’ve found yet. What do you think ?
<li class="menu-item">' .
get_avatar($current_user->ID, 20) . '<a>ID ) .'" class="td_user_logd_in">' . $current_user->display_name . '</a><i class="td-icon-logout"></i>' .
Hi
Not sure what you mean but if you want to add a link to author page on the user name you can try this implementation: https://forum.tagdiv.com/topic/profil-name-link-in-the-top-left/
If this is not what you mean please provide more specific details.
Thanks!
Andrei L. Hello, I tested the solution you suggest. This solution displays author_posts_url as http://www.exemple.com/author/author-name/. What I want to have as a result is http://www.exemple.com/my-profil/. Here is the cod used properly functioning:
<li class="menu-item">' . get_avatar($current_user->ID, 20) . '<a href="' . get_edit_user_link( $e->ID ) . '" class="td_user_logd_in">' . $current_user->display_name . '</a><i class="td-icon-logout"></i></code>
-
This reply was modified 10 years by
SLogyc.