Every one love to see their site totally branded. It does feel good when your users see the WordPress login page when they have to login, may be just to post a comment. Biggest problem come when you are developing for a client. Well though most of them don't know the solution is simple. You don't have to rely on any plugin just to do few modifications on the login page. You just have to add few lines to your functions.php file within your theme folder.
In this example we are changing the logo, background image and the form in the login page. Anything can be changed. Just go to your login page and see the style sheet. Give new css properties here and the default ones will overwritten.
Additionally you can also change the link of the login page logo which by default links to the wordpress site. Follow this post which is a nice write-up on the topic.
"This is the final result, after adding the below code to functions.php" |
add_action("login_head", "my_login_head");
function my_login_head() {
echo "<style>body.login #login h1 a {
background: url('".get_bloginfo('template_url')."/styles/logo.gif')
no-repeat scroll center top transparent;
height: 49px;width: 229px;
margin-left:auto;margin-right:auto; }
body {background: url('".get_bloginfo('template_url')."/styles/bg.jpg') repeat-x; }
form {
-moz-background-clip:border;
-moz-background-origin:padding;
-moz-background-size:auto auto;
-moz-border-radius-bottomleft:0px;
-moz-border-radius-bottomright:20px;
-moz-border-radius-topleft:20px;
-moz-border-radius-topright:0px;
-moz-box-shadow:0 4px 18px #C8C8C8;
}
</style>";}
In this example we are changing the logo, background image and the form in the login page. Anything can be changed. Just go to your login page and see the style sheet. Give new css properties here and the default ones will overwritten.
Additionally you can also change the link of the login page logo which by default links to the wordpress site. Follow this post which is a nice write-up on the topic.
Comments
Post a Comment