How to remove the sign up button?

AI-generated summary

The discussion is about removing the sign up button on the topbar, as it can be confusing for members who use Discord to log in. itsbhanusharma suggests turning off the local logins option under Admin > Settings > Login, which may remove the sign up button. However, this doesn’t work for Aiden12114.

Aiden12114 is then advised to hide the button through CSS. neounix provides the CSS code button.sign-up-button{ display:none; }, which works for Aiden12114. This solution involves adding the CSS code to the desktop CSS template area.

I was wondering how to remove the sign up button because my members get confused between sign up and login. The thing is, it uses Discord to login in so, login would be more appropriate.

I think you should turn off the local logins option under Admin > Settings > Login

Your admin account must be able to authenticate with Discord or else they may potentially lose access.

I did that but, I would like to get rid of the sign up button on the topbar.

If that didn’t work, You can hide the button through css

Have you refreshed since changing that option? Unless something has regressed it should disappear after a reload AFAIK.

Sorry for such a late reply! How would I go about removing it with CSS?

Hey @Aiden12114

Does this work for you?

button.sign-up-button{
  display:none;
} 

Hope this helps.

Dear @londonstuff.meli

Works fine from here when I put it in the desktop CSS template area:

HTH.

yeah, I realised that I had made a mistake. Thx nevertheless :slight_smile:

Thanks! It worked! Tysm!

Hi @Aiden12114

Glad to hear you got it working.

I know how you feel; because I’m still pulling my hair out with writing the Ruby on Rails aspect of Discourse plugins (Controllers, Models and Views).

Step-by-step we all climb the mountain of Discourse knowledge together!