1 month, 3 weeks ago
I hope everyone is staying safe. Thanks to everyone for posting helpful answers, I have already go so far considering my lack of coding.
I want to remove “Add Friend” & “Private Message” on profiles ONLY for logged out users. But keep these buttons for logged in users, can this be done?
Kind Regards, Chuck.
Those buttons don’t normally appear for logged out users. Have you tested with the default themes?
Thank you for the reply. I am using rehub theme and I have queried this with the theme dev.
@chuck141 and what did the theme dev say? As @iamthewebb mentioned above, those do no show up for users who are not logged in. If you change to Twenty Twenty theme, do the buttons still show up when you’re logged out?
The button does not show in Twenty Twenty theme. The theme I use it shows the button but when clicked it makes you sign up/login. The Dev has not got back to me yet.
The Dev developer suggested this code
But it does not work, any suggestions?
This worked! Please close. Thanks for replying guys.
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service