I have the memberful integration with Discourse. When SSO is active, the sign up button disappear. Only the “sign in” button of Discourse is showing and convert to the Memberful’s sign in form.
I will add a “sign up” button with some CSS codes in the header. My question is : how to make this button disappear when a member is log in? I want the same thing that happen to the current “sign in” button of Discourse, it is hiding when a member log in.
The approach mentioned by @dax works fine, however another approach you can take to add a Sign Up button when SSO is active is to use the plugin api in a header script.
The advantage of using the plugin api is that you can insert the button in the right part of the DOM tree to make styling easier.
This issue arose in the context of getting @Francois_Douville’s button to play nicely with the Header Search Theme (see here).
In @Francois_Douville’s case, the appropriate javascript to add the button is: