You can hook into it with the bp_nav_items
action (see bp-core-templatetags.php line 535), though that function is marked as deprecated and that “you should put these navigation items in your template header.php for easy editing.” So, for now, take your pick.
ahhh – looks like it will be a template edit for me! Thanks Paul
Hi all!
I’d also like to add a button with an external link. I can see where in the header.php file I need to insert it but have never coded php before. Could someone show me the exact line of code I would need to insert to create a button that links to an external url?
Thanks!
What is the thinking behind deprecating the hook and recommending a template edit? I would think that if someone is using the default theme and only wants to add a single link to the header… it might be better to do is using the hook and the functions.php file… rather than have to duplicate an entire template in the child? Just wondering.