This topic has 2 replies, 2 voices, and was last updated 10 years by frien337.

  • Author
  • #7541
     frien337
    Participant

    Hi all,

    Does anyone know how I can remove the “Send Public Message” button from the profile header? I have removed the code from funtion “kleo_bp_header_actions” (in file bp_functions.php under custom_buddypress folder):


    <?php if ( bp_is_active( 'activity' ) ): ?>
    <div id="post-mention" class="generic-button">
    " href="#"><?php _e("Public Message", 'kleo_framework');?>
    </div>
    <?php endif; ?>

    Unfortunately the button still shows… Any ideas?

    #7542
     adam
    Participant

    Put this code in your functions.php file to remove the Send Public Message button:

    COPY CODE
    
    function remove_public_message_button() {
    remove_filter( 'bp_member_header_actions','bp_send_public_message_button', 20);
     
    }
    add_action( 'bp_member_header_actions', 'remove_public_message_button' );
    
    #7634
     frien337
    Participant

    Thanks Adam! That worked wonderfully. Any ideas as to why it wouldnt work if I removed that piece of code from the bp_functions.php file?

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?