es funktioniert schon, was wpchecker hier gepostet hat. Du darfst solche Änderungen nur nicht im Dashboard machen sondern: functions.php downloaden, ändern hoch damit. Hab das hier mal zusammengefasst incl. einer größenanpassung des logos in einer eigenen style-login.css
functions.php
PHP
/**********************************
*login-logo
***********************************/
function loginform_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login-logo.png) !important; }
</style>';
}
add_action('login_head', 'loginform_logo');
function my_login_stylesheet() { ?>
<link rel="stylesheet" id="custom_wp_admin_css" href="<?php echo get_bloginfo( 'stylesheet_directory' ) . '/style-login.css'; ?>" type="text/css" media="all" />
<?php }
add_action( 'login_enqueue_scripts', 'my_login_stylesheet' );
Alles anzeigen
style-login.css
Code
.login h1 a {
background-size: 240px 52px;
background-position: center top;
background-repeat: no-repeat;
height: 52px;
font-size: 20px;
font-weight: normal;
line-height: 1.3em;
margin: 0 auto 25px;
padding: 0;
text-decoration: none;
width: 240px;
text-indent: -9999px;
outline: none;
overflow: hidden;
display: block;
}
Alles anzeigen