Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add link to profile pages navigation bar


  • bekircem
    Participant

    @bekircem

    Hi. I am new to BuddyPress. I want to add a link to profile pages navigation bar. Which file should I edit?

    image

Viewing 1 replies (of 1 total)

  • bekircem
    Participant

    @bekircem

    I added link with function.php But how i set custom link (http://forum.site.com) for that?

    
    
    /**
     * adds the profile user nav link
     */
    add_action( 'bp_setup_nav', 'add_calendar_2_bp_nav_item' );
    function add_calendar_2_bp_nav_item() {
    	global $bp;
    
    	$args = array(
    		'name' => __( 'Study Hall', 'buddypress' ),
    		'slug' => 'http://site.com',
    		'default_subnav_slug' => 'my-study',
    		'position' => 24,
            'screen_function' => 'bp_nav_tab_stuff',
    		'item_css_id' => 'my-study',
    	);
    
    	bp_core_new_nav_item( $args );
    }
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar