Home › Forum › Problemi Vari con WP › Problema pagina custom login con WordPress 3.3
-
AutorePost
-
-
14 Dicembre 2011 alle 20:37 #20055bacoPartecipante
Salve ragazzi, da qualche tempo avevo personalizzato per il mio sito la pagina login, giusto per sfizio dato che a parte me e possibili hacker sono l’unico a guardarla:
Avevo aggiunto nel file function del tema il seguente codice:
<?php
function custom_login() {
echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/custom-login/custom-login.css" />';
}
add_action('login_head', 'custom_login');
?>e creato il seguente file css
html {background:#17272d url(../images/pbd-body.jpg) 0 0 repeat-x;}
h1 a {
background:url(../images/pbd-title.png) 0 0 no-repeat;
width:415px;
height:70px;
}
body.login {border-top-color:#dff4fc;}
.login p#backtoblog a:link, .login p#backtoblog a:visited {color:#17272d;}
.login p#backtoblog a:hover, .login p#backtoblog a:active {color:#17272d;text-decoration:underline;}Purtroppo da quando ho aggiornato a WordPress 3.3 non funziona più. Qualcuno sa aiutarmi?
Magari basta cambiare solo qualche parametro con il nuovo WordPress.
Spero di non chiedere niente di esagerato, mi scuso in caso.
-
15 Dicembre 2011 alle 7:43 #90780TittiModeratore
it does not work because the css style that the plugin has to override is not h1 a anymore but .login h1 a
da http://wordpress.org/support/topic/custom-login-does-not-work-on-33
-
15 Dicembre 2011 alle 13:03 #90792bacoPartecipante
Ciao Titti grazie, seguendo anche le indicazioni di wordpress.org ho risolto cosଠ(anche lo sfondo bisognava riguardare):
.login h1 a {
background:url('../images/logo.png') no-repeat 0 0;
margin-left:-174px;
width:674px;
height:100px
}
body.login {background:#color url('../images/background.jpg') repeat-x;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;In caso possa servire a qualcun’altro.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.