All Collections
Marketing
Content Management
How can I hide or show content, links, etc. when someone is a member, authenticated or a business owner?
How can I hide or show content, links, etc. when someone is a member, authenticated or a business owner?
Updated over a week ago

By using a simple CSS tag, you can show or hide links to your end users based on their current status. Simply add the following classes to your HTML and we will auto-hide if they don't match the item:

  • isAuthenticated - this will display if they are logged in

  • isActiveMember - this will display if they have an active membership

  • isBusiness - this will display if they are a business owner (associated with a business in the directory)

If you just want to show or hide based on if they're login, you can leverage these CSS classes:

  • hideUnAuthenticated - this will hide if they are not authenticated

  • hideAuthenticated - this will hide if they are logged in

Did this answer your question?