This topic has 3 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #68915
     hma
    Participant

    Hello,
    I would like to remove the public button : ” send public message” on the profile…
    How can I make this ?
    Is there a specific line of code I could put in child theme ?
    This would be the easiest for me .
    Best regards,
    Hervé

    #68933
     sharmstr
    Moderator

    Please search before posting. There is info on the buddypress forum on how to do this.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #68958
     hma
    Participant

    Hello,
    thank ,you. I did research and tried to put this lines :

    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’ );

    in a bp-custom in Plugins file, as I have found in forums but site was blank !

    So I thought I shouls ask experts befgore playins more with black magic;-)

    What did I miss ?

    Best regards,
    Hervé

    #68960
     sharmstr
    Moderator

    Next time, please indicate that you tried code. It will speed up this whole process. Your code has fancy quotes. Common mistake. They even mention it here: https://buddypress.org/support/topic/remove-public-message-button-in-child-theme/#post-164097

    The experts in this case are the buddypress developers since its their plugin 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?