Saturday, September 21, 2013

Customize the WordPress Login

Want To Customization?
If you fancy taking to change the look of your WordPress login, there is a solution: change the "functions.php" file

Customize the WordPress Login 
Of course there are plugins for this but with a few lines of code you do not alourdirez WordPress. Attention before handling, consider making a backup.

Let's go customize:
Open the file function.php of your theme and enter the following code:

// personnaliser mon login
function logoPersoLogin(){
 echo '<style type="text/css">
 h1 a{background-image: url('.get_bloginfo('template_directory').'/img/logoLogin.png)
 !important;}
 </style>';
}
add_action('login_head','logoPersoLogin');
When the action login_head happen then logoPersoLogin function will run. Note also that the logo image is called logoLogin.png and it is in the img folder of your theme.
Share it Please

0 comments:

Post a Comment

Copyright @ 2013 Johnny Gagnon blog. Designed by Templateism | Love for The Globe Press