gayatriom 0 Report post Posted April 6, 2011 Hey. So I am using buddypress and I have the php code to add a 'Your profile' link. But I am trying to add it to the main navigation menu. Is that possible? Share this post Link to post Share on other sites
gayatriom 0 Report post Posted April 6, 2011 After doing some research i discovered that i must add Something like the below code to my bp-custom.php folder. However, since I am using a custom wordpress menu,the 'bp_nav_items' part of the below code would be irrelevant. Do you know what the main nav is called in pagelines? <?php add_action("bp_nav_items","show_user_link"); function show_user_link(){ if(!is_user_logged_in()) return; ?> <li<?php if ( bp_is_home()) : ?> class="selected"<?php endif; ?>> ">MY Profile <?php } ?> Share this post Link to post Share on other sites
timlinson 3 Report post Posted April 7, 2011 If you're using PlatformPro, go to Template Setup and click the "Advanced Setup" link of the "Navigation" block. You'll see some primary nav related hook names that you could try. Share this post Link to post Share on other sites
gayatriom 0 Report post Posted April 7, 2011 hmm ok. cool. thanks. Ya i'm using platform pro. Share this post Link to post Share on other sites