Reputation: 193
I am trying to style the error page related to the error "This has been disabled".
This error comes up when people try to access the page https://benefacto.org/wp-admin/.
I thought maybe because it was a link with "wp-admin" it might be related to back-end styling?
I tried styling it with my stylesheet that is enqueued on the back-end it did not work.
Is there maybe a specific stylesheet I need to enqueue to style the error?
This is the styling I am trying to apply to the page:
/* Customises the WP-Error message on the login page */
body#error-page {
background: #9100c0 !important;
}
Here is a screenshot of the page I want to style:
The link for this page is "example.com/wp-admin"
I appreciate any help or suggestions! ^_^
Upvotes: 0
Views: 617
Reputation: 5211
This one login page for update css. Error page for not any filter functions more information
Add this code on your activated theme's function.php
function my_login_custom_css() {
?>
<style type="text/css">
body#error-page{
background-color: #9100c0;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_custom_css' );
Upvotes: 1