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! ^_^
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' );
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.