General developer forum

Cannot hide 'city' and 'country' in registration form

 
Picture of Sebastian Vencken
Re: Cannot hide 'city' and 'country' in registration form
 

Excellent tip and it worked!

I've adjusted the code a little as using just the form-group class also deleted the Create My New Account and cancel buttons (also in form-group class). Hence, I've put form-group in as a subclass to the fcontainer class.

This now works perfect:

#page-login-signup .fcontainer .form-group:nth-child(5) {
display: none;
}
#page-login-signup .fcontainer .form-group:nth-child(6) {
display: none;
}

Still a mystery why the #id selectors didn't work initially.

 
Average of ratings: -