Hello Friends, In this tutorial we will tell you how to customize your WordPress login page. This is the standard way of doing it because,
- We are not touching the WordPress core
- The modification is preserved even if we upgrade the word press core.
So lets start. Add the following codes to the functions.php of your theme file
Changing the WordPress logo in the login page
add_action("login_head", "my_custom_logo"); function my_custom_logo() { echo "<style>; body.login #login h1 a { background: url('".get_bloginfo('template_url')."/_graphics/logo3.png') no-repeat scroll center top transparent; } </style>;"; }
Changing the link in the WordPress logo in the login page
add_filter('login_headerurl', 'my_custom_url'); function my_custom_url(){ return "http://webgalli.com/"; }
Changing the title of the WordPress logo in the login page
add_filter('login_headertitle', 'my_custom_title'); function my_custom_title(){ return "My sites title"; }
So thats all for now. Hope it will be useful for you.
Tags: change wordpress dashboard, change wordpress link, change wordpress logo, replace wordpress link and title in login page, replace wordpress logo, replace wordpress logo in login page, wordpress hacks
[…] can find three more extra hacks in our previous blog. Last Post add wordpress widgets remove wordpress widgets wordpress dashboard wordpress […]
[…] can find three more extra hacks in our previous blog. Last Post add more fields to wordpress add wordpress widgets extra widgets for wordpress […]
[…] You can find three more extra hacks in our previous blog. […]