Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • dzweb
    Participant

    @dzweb

    Try this, it worked for me!

    function custom_setup_nav() {
    global $bp;

    bp_core_new_nav_item( array(
    ‘name’ => __( ‘About’, ‘buddypress’ ),
    ‘slug’ => ‘about’,
    ‘position’ => 30,
    show_for_displayed_user’ => true,
    ‘default_subnav_slug’ => ‘about’,
    ‘item_css_id’ => ‘about’
    ) );
    }

    bp_core_new_subnav_item(
    array( ‘name’ => __( ‘About’, ‘buddypress’ ),
    ‘slug’ => ‘about’,
    ‘parent_url’ => $bp->loggedin_user->domain . ‘about’,
    ‘screen_function’ => ‘about’,
    ‘parent_slug’ => ‘about’,
    ‘position’ => 10,
    ‘item_css_id’ => ‘about’
    )
    );

    add_action( ‘bp_setup_nav’, ‘custom_setup_nav’ );

    function about_page() {
    add_action( ‘bp_template_content’, ‘about_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/about’ ) );
    }

    function about_content(){
    //Put your content here!
    }

Viewing 1 replies (of 1 total)
Skip to toolbar