Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I thought before wordpress ms would redirect you automatically to that sites dashboard. but now it lists the sites you own and shows an error message.(if you attempt to log into the main site) I guess I am ok with it but want to hide the error message. I could do this by editing the install.css with:

#error-page p {display: none !important;}

I dont want to edit the core files. I'd like to do it with a function.

share|improve this question

closed as not a real question by toscho Jul 14 '12 at 21:30

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

You can do this using the login_head function. Adding the following to your themes functions.php file or wrapping it up in a plugin should do what your after:

<?php add_action("login_head", "my_login_head");
function my_login_head() {
    echo "
        <style>
            #error-page p {display: none !important;}
        </style>
    ";
} ?>
share|improve this answer
That did not work. That will add to the admin.css This ID is coming from the install.css – Shae Sep 25 '11 at 13:21
Note the above will only work on the wp-login.php page, not login forms generated by a theme. – Jono Warren Sep 25 '11 at 15:59

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