I have used this code but its not working (Please Help).
Reference Url: https://wplms.io/support/knowledge-base/adding-custom-subnav-in-buddypress-profile-area/
function bp_page_nav(){
global $bp;
$user_domain = bp_displayed_user_domain() ? bp_displayed_user_domain() : bp_loggedin_user_domain();
$profile_link = trailingslashit( $user_domain . $bp->profile->slug );
bp_core_new_subnav_item( array(
'name' => 'Page',
'slug' => 'page',
'parent_url' => $profile_link,
'parent_slug' => $bp->profile->slug,
'screen_function' => 'page_screen',
'position' => 20
) );
}
add_action('bp_setup_nav', 'bp_page_nav', 10 );
function page_screen(){
global $bp;
add_action( 'bp_template_content', 'bp_page_screen_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
function bp_page_screen_content(){
global $bp;
echo 'Content';
}
hi
can you please let us know which version of the theme you are using v3 or v4?
I am using the v4 version
hi
the delay in response is due to support holiday
in v4 the profile layout looks like this:
http://prntscr.com/20y4m34
and you can directly edit the profile layout from
wp-admin>>vibebp>>profile layout and add any element you want.
Sir, I want to move groups, forums, and friends inside of messages.
Screenshot: https://i.imgur.com/xq4BmOr.png
Many thanks to replying to my developers, Veronica.
I just want to confirm if we can really customise the submenu where it has a mark on the image below (not where is marked "tabs"), please check the link:
https://camo.envatousercontent.com/183e65b9adce63a8dc065ab9dedbfa29d3355231/68747470733a2f2f76742d7466696d616765732e73332e616d617a6f6e6177732e636f6d2f77705f6c6d735f6d6f62696c655f6170702e706e67
Could you please help us with the directions.
Speak soon and good vibes,
Gus
hi
where exactly?
http://prntscr.com/218jn2s
didn't get your point
please clarify
what and where you want to customize
Thanks for you message, Veronica.
We want to modify the menu at the top of your image, as you advertised there.
Could you please send the hook or directions?
hi
may i know what you want to customize here
http://prntscr.com/21e6kb6