Hi,
I display an information notice when I’m on the profile page.
Everything works fine.
I am now display a notice on all buddypress pages (profile, groups, messages …)
I tried several do_action but none works.
I use a child theme (or bp_custom.php)
COPY CODE
// NOK
add_action( 'after_header_content', 'action_bp_before_container', 10, 0 );
function action_bp_before_container( )
{
echo "after_header_content";
}
add_action ( 'bp_after_header', 'test_titre' );
function test_titre(){
echo '<h3>HA HA HA</h3>';
}
add_action( 'kleo_after_header', 'welcome_msg' );
function welcome_msg(){
echo "kleo_after_header";
}
// OK
add_action( 'bp_before_member_home_content', 'action_bp_before_profile_edit_content', 10, 0 );
function action_bp_before_profile_edit_content( )
{
echo "<h1>bp_before_member_home_content 1/10</h1>";
}
Regards