Support » Plugin: BuddyPress Follow » Add Friend button

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author r-a-y


    This is not related to the plugin, but I’ll answer this.

    You need to add the following in your theme’s functions.php or /plugins/bp-custom.php:

    // remove 'add friend' button from profile page
    function my_remove_friend_button() {
    	if ( ! function_exists( 'bp_displayed_user_id' ) ) {
    	if ( bp_displayed_user_id() && bp_is_active( 'friends' ) {
    		add_action( 'bp_member_header_actions',    'bp_add_friend_button', 5 );
    add_action( 'get_header', 'my_remove_friend_button' );

    Then use bp_add_friend_button() somewhere in your template file where you want the “Add Friend” button to show up.

    Thanks for your help!

    Now I’m facing another problem with the theme (or plugin). The buttons that I described are not showing on the profile anymore and the <?php do_action( 'bp_member_header_actions' ); ?> is there.

    What’s happening?



    Hey rafaelfragosom,
    I’m facing the same issue.
    Were u able to find a fix for disappearing buttons?

    Plugin Author r-a-y


    Sounds related to this BuddyPress bug:

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Friend button’ is closed to new replies.