link name + avatar to frontend profile
-
Hi, i am trying to link the user-name in my themes navigation to the user-profile (frontend).
I am on
Wordpress 4.3.1
Buddypress 2.3.4
True Mag Theme 4.1 by CactusThemesIn the theme options i can enable to extend the navigation by the user-name, avatar and a little dropdown menu with links to edit profile and to logout.
Unfortunately the user-name and avatar are empty links and i want to link them to the users profile.
I asked the theme author but he couldn’t help and said i should ask the buddypress author 😉so this is the html/php code for that little navigation extension
<li class="menu-item current_us"> <?php echo '<a class="account_cr" href="<strong>#</strong>">'.$current_user->user_login; echo get_avatar( $current_user->ID, '25' ).'</a>'; ?> <ul class="sub-menu"> <li class="menu-item"><a href="<?php echo $link; ?>"><?php _e('Edit Profile','cactusthemes') ?></a></li> <li class="menu-item"><a href="<?php echo wp_logout_url( get_permalink() ); ?>"><?php _e('Logout','cactusthemes') ?></a></li> </ul> </li>
as you can see the href on the first a is empty.
Can you tell me what i have to write there to link it to the users profile?and additionally could you tell me how to link the ‘Edit Profile’ link to the frontend profil-edit screen and not to the wordpress backend?
i noticed that when i activate the extended profile component of buddypress that this works. but then i have to fill that undesired name field on “base”…The website i am talking about is http://wordpress.freekickerz.net
Login credentials for testing purpose are hallo/halloif you need any more information please let me know.
greetings from Cologne, Germany
Jan
- The topic ‘link name + avatar to frontend profile’ is closed to new replies.