How to hide the "private messages" button on the member search results page?

Home Forums Gwangi – Dating & Matchmaking Community Theme Popular Features Member Profile Search How to hide the "private messages" button on the member search results page?

This topic contains 6 replies, has 2 voices, and was last updated by  Olivier Cardoen 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7540

    djh
    Participant
    • 30 Posts
    @djh7905

    How to hide the “private messages” button on the member search results page?
    Thank you!

    #7545

    djh
    Participant
    • 30 Posts
    @djh7905

    Can you make the search results page look like this?

    #7560

    Olivier Cardoen
    Participant
    • 338 Posts
    @themosaurusrex

    Hi @djh7905,

    Do you wish to remove the private messaging feature all together from your website? In that case, please navigate to “Settings > BuddyPress” and the uncheck the “Private Messaging” box. (Please see attached.)

    Cheers,

    #7562

    djh
    Participant
    • 30 Posts
    @djh7905

    I don’t want to cancel it, I just want it not to show up.
    Since I installed a plugin that can only send private messages to friends, the button to send private messages is no longer displayed on the profile page of non-friends, but the search results page will still display.

    #7575

    Olivier Cardoen
    Participant
    • 338 Posts
    @themosaurusrex

    Hi @djh7905,

    Unfortunately, if this issue is stemming from the use of a third party plugin, you should notify the plugin authors and ask them why the button is still showing up on the search results.

    You can still hide every “Private Message” button for every member displayed on the directory AND the search results pages, friends included. However, that’s not what I would recommend in this case…

    To change this, simply add the following code snippet to your website:

    /**
    * Hide Private Message button from member directory search results
    */
    #members-dir-list .send-private-message {
    display: none;
    }

    To add this code snippet to your site, we recommend that you paste it to the Custom CSS panel of your WordPress Customizer. Just go to your dashboard and navigate to “Appearance > Customize > Additional CSS”.
    Pasting your code snippet there should do the trick for you.

    Also, it’s important to remember that we share snippet only to solve issues with our theme. Any further request for CSS snippets will have to be part of a defect that needs to be fixed urgently. No snippets will be shared otherwise.

    If you want to go further with this issue, I advise that you try to reach the plugin authors.

    Regards,

    #7583

    djh
    Participant
    • 30 Posts
    @djh7905

    Perfect solution! Thank you so much!

    #7587

    Olivier Cardoen
    Participant
    • 338 Posts
    @themosaurusrex

    You’re welcome. 🙂

    Best regards,

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

The topic ‘How to hide the "private messages" button on the member search results page?’ is closed to new replies.