Advertisement
bphelp

Add dynamic profile link on member page

Feb 22nd, 2013
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Please mark this as resolved! I found a solution through trial and error. I will share it but keep in mind I am using WP 3.5.1 and BP 1.7 beta 1.
  2. What I did was copy the folder from mysite/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress into the root of my child theme. Then I navigated to mysite/wp-content/themes/mychildtheme/buddypress/members/index.php and I edited that file. After the code:
  3. <code>
  4. <div class="item-list-tabs" role="navigation">
  5. <ul>
  6. </code>
  7. Add this line above the first <li> item:
  8. <code>
  9. <li class="mypersprof"><a href="<?php echo bp_loggedin_user_domain(); ?>">My Profile</a></li>
  10. </code>
  11. Save and it it will add a dynamic tab to the left of the members tab on the members page.
  12. Cheers!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement