BuddyDev

Search

Bp-community activity on profile – how to?

  • Participant
    Level: Enlightened
    Posts: 35
    Kir on #19943

    Hi there, how would I apply this in my child theme so I can over-write the file? I’d like to change the text label in the template.

    Also is there a best way to make this tab the default landing tab?

    Many thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #19948

    Hi Kir,
    Thank you for using the plugin.

    For the label(All Activity), you should translate the plugin.

    For making it default, you can use the following code

    
    
    /**
     * Set community activity as landing for activity
     */
    function bp_custom_community_activity_as_default_landing() {
    	if ( ! bp_is_my_profile() ) {
    		return;
    	}
    
    	bp_core_new_nav_default( array(
    		'parent_slug'     => 'activity',
    		'subnav_slug'     => BPCOM_ACTIVITY_SLUG,
    		'screen_function' => 'bp_community_activity_screen',
    	) );
    }
    add_action( 'bp_activity_setup_nav', 'bp_custom_community_activity_as_default_landing', 15 );
    
    

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved