Skip to:
Content
Pages
Categories
Search
Top
Bottom

Solved – How to remove “Add Friend” & “Private Message”


  • Chuck141
    Participant

    @chuck141

    Hi,

    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.

Viewing 6 replies - 1 through 6 (of 6 total)

  • iamthewebb
    Participant

    @iamthewebb

    Those buttons don’t normally appear for logged out users. Have you tested with the default themes?


    Chuck141
    Participant

    @chuck141

    Thank you for the reply. I am using rehub theme and I have queried this with the theme dev.


    @mercime
    Participant

    @mercime

    @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?


    Chuck141
    Participant

    @chuck141

    Hi Mercime,

    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.


    Chuck141
    Participant

    @chuck141

    The Dev developer suggested this code

    body:not(.logged-in) .item-buttons{display:none}

    But it does not work, any suggestions?


    Chuck141
    Participant

    @chuck141

    body:not(.logged-in) #item-buttons{display:none}

    This worked! Please close. Thanks for replying guys.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar