To replace wordpress default login logo with a custom one, just add following function in function.php
function wp_custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/your-logo.png) !important; }
</style>';
}
add_action('login_head', 'wp_custom_login_logo');
To customize wordpress login url, add following function in function.php
function wp_custom_login_url() {
return site_url();
}
add_filter( 'login_headerurl', 'my_custom_login_url', 10, 4 );
function wp_custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/your-logo.png) !important; }
</style>';
}
add_action('login_head', 'wp_custom_login_logo');
To customize wordpress login url, add following function in function.php
function wp_custom_login_url() {
return site_url();
}
add_filter( 'login_headerurl', 'my_custom_login_url', 10, 4 );
No comments:
Post a Comment