How to show a piece of content to *only* non-logged in users

Sorry, really didn’t want to post this, but couldn’t find a thread on it—my apologies in advance if I just overlooked it.

Looking to have something—similar to Welcome Link Banner—but to non-logged in users, encouraging them to get registered, etc. Is this possible via component?

1 Like

When Discourse is being viewed by a non-logged user, there is a anon class on the HTML element. You can use it’s presence (or lack of) to hide the banner for logged in users.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.