Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: adding a page

You don’t need to hard code the links, this examples shows how to add links to the “main menu”:

<?php

function add_about_to_main_menu() {

$class = (bp_is_page('about')) ? ' class="selected" ' : '';

echo '<li ' . $class. '><a href="' . get_option('home') . '/about" title="' . __( 'About', 'buddypress' ) .'">' . __( 'About', 'buddypress' ) .'</a></li>';

}

add_action('bp_nav_items','add_about_to_main_menu');
?>

Skip to toolbar