Hide pages from signed in users Answered

Post author
JQ Sirls

Can we hide pages from signed in users? Like login and sign up?

Comments

2 comments

  • Comment author
    Al Mazlin

    I don’t think you can actually block users from the whole page, but you can display different content on the page for logged in members vs non-members using data attributes.

    https://docs.memberstack.com/hc/en-us/articles/7403036765339-Show-and-Hide-Individual-Elements-data-ms-content

    I use data-ms-content=!members to hide login/signup forms from logged in members on my login page. You can show a different message to members on these pages by using data-ms-content=members.

    There might be a more clever way to achieve this goal, but this works 🙂

    0
  • Comment author
    Julian Galluzzo

    There is a script that can do this! I just need to find it. But natively in memberstack no, you can do the opposite though

    0

Please sign in to leave a comment.