Skip to:
Content
Pages
Categories
Search
Top
Bottom

add subnav to activity

  • Profile photo of Dono12
    Dono12
    Participant

    @dono12

    Buddypress 2.73
    WordPress 4.5.3

    I’m trying to add a sub-nav to Activity in the wp-bp admin bar.

Viewing 1 replies (of 1 total)
  • Profile photo of kalughodakiya
    kalughodakiya
    Participant

    @kalughodakiya

    Just add sub nav using bp_core_new_subnav_item and modify file activity.php just put your code before if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( ‘just-me’ ) ) )
    bp_get_template_part( ‘activity/post-form’ );

    with if condition like
    if(is_user_logged_in() && bp_is_my_profile() && bp_is_current_action( ‘schedule_message’ )){
    get_template_part( ‘custom_files/schedule_message’ );

    if current action is you tab slug then load you page template otherwise default

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar