Skip to:
Content
Pages
Categories
Search
Top
Bottom

New page in Nav Menu

  • Avatar of Ichbinsdennis
    ichbinsdennis
    Member

    @ichbinsdennis

    Hi guys,

    I would like to add a custom page to main menu.

    Problem is, when i do the following:

    <?php

    function add_about_to_main_menu() {

    $class = (bp_is_page(‘about’)) ? ‘ class=”selected” ‘ : ”;

    echo ‘<li ‘ . $class. ‘>‘ . __( ‘About’, ‘buddypress’ ) .’‘;

    }

    add_action(‘bp_nav_items’,’add_about_to_main_menu’);

    ?>

    it shows up in main menu but i get some strange widgets and “welcome” on that page without adding something in code.

    I just want a blank page in which I can put in my own code..

    When clicking on a standard page the button is coloured, when I click on my custom page button is not coloured? Any Idea?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘New page in Nav Menu’ is closed to new replies.