Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp-events plugin – Remove link “Events” in header


Erwin Gerrits
Participant

@egerrits

In bp-events.php, find the following code (around lines 331-338):

function add_events_to_main_menu() {

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

echo '<li ' . $class. '><a href="' . get_option
('home') . '/events" title="' . __( 'Events', 'bp-events' ) .'">' .
( 'Events', 'bp-events' ) .'</a></li>';

}
add_action('bp_nav_items','add_events_to_main_menu');

Just take that whole function out (including the ‘add_action’). Alternatively, you can just comment out the ‘add_action’ line, by putting // in front of it, and the function will never be called…

Erwin

Skip to toolbar