This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

Add dynamic profile link on member page

By: bphelp on Feb 22nd, 2013  |  syntax: None  |  size: 0.73 KB  |  views: 143  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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!
clone this paste RAW Paste Data