Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-events plugin – Remove link "Events" in header

Viewing 1 replies (of 1 total)

  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘bp-events plugin – Remove link "Events" in header’ is closed to new replies.
Skip to toolbar