How to remove the "log in" button from "Create New Account" dialog box?


#1

Hi,

How to remove the “Log in” button from the “Create new Account” dialog box?

Can someone please supply me the CSS code?


(Vinoth Kannan) #2
.create-account #login-link {
 display: none;
}

#3

@vinothkannans
Thanks. I have one more request. Please help.

Could you please provide me the CSS code to remove the below button:


(Vinoth Kannan) #4
.header-buttons .sign-up-button {
 display: none;
}

#5

@vinothkannans
Excellent, thanks.

The first button that we removed - was really affecting the sign-ups.
I’d say the discourse team should consider removing that button from the core.


#6

@vinothkannans
Oops, The second CSS code that you supplied didn’t work :frowning:


(Vinoth Kannan) #7

It working in my browser. Check again


#8

I added this on a brand new sandbox install:

and the button is still there:


(cpradio) #9

Make sure that customization is enabled and you refresh the page


#10

@cpradio
Yep, I clicked on the save button.
And I tried refreshing the page too.

The first CSS code - worked without any issues.
Its just the second one that didn’t work.

(I tried both the CSS codes on 2 sites. The second CSS code didn’t work on either of the sites.)


(Vinoth Kannan) #11

.header-buttons css class is added recently (22 hours ago). It will work if you upgrade to recent Discourse version. Else use below

.d-header span .sign-up-button {
 display: none;
}