Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.