How do you hide links from non signed in users? (2 posts)

  1. sulfericacid
    Posted 4 years ago #

    I want to hide a navigation link from anyone not signed in. I don't want to make the content on the page blocked when the user goes to it, I don't want the link to show up at all unless they are signed in.

    How is this done?

    Background: I installed a private messaging plugin which required me to make a new page and apply their template. When signed it it works great. When you're not signed in you see the link and when you go to the page it's just empty. I think this looks messy so I want the link itself to be gone for visitors.

  2. WebTechGlobal
    Posted 4 years ago #

    That does sound messy, are you sure your not meant to do more with the blank page?

    Settings to show registration form maybe?

    This question can't be fully answered without knowing what plugin your talking about. Also, it would require php modifications to be made, do you know PHP?

    Would need to add code that checks if visitor is logged in. Maybe you also need to check that the user logged in has some other status such as they have paid for a service or product?!

    I would offer to to do this but I'm on here seeking help myself and deep into a project. Get hold of me in a few days if your still stuck.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.