WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have customized my login screen with a logo using html{background:#E2DEAF url(.../images/login_logo.jpg) center top no-repeat;} because it is so wide. Usually would not tie something to the HTML element. works great BUT... it also shows up in the admin area. Anyway to prevent this? I only want it on the login.

share|improve this question
up vote 0 down vote accepted

Try selecting login body class instead of adding background to html tag.

body.login {
   background:#E2DEAF url(.../images/login_logo.jpg);

You could also play with .page (pages only), .logged-in (logged users) and so forth :)

Hope it helps.

share|improve this answer
Thank you! Perfect. – Gregg Franklin Apr 4 '11 at 18:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.