Hi,
We can customize login page in wordpress. For that we can use this code. Add this code either in function.php file or save it as php file and upload it in plugin directory. After that from admin section activate this plugin.
function bm_custom_login()
{
$pluginPath = “/wp-content/mu-plugins/”;
$versionCheck = 999;
if(! is_dir($pluginPath)) {
$pluginPath = “/wp-content/plugins/”;
$versionCheck = 2.5;
}
$pluginUrl = get_settings(‘siteurl’) . $pluginPath . plugin_basename(dirname(__FILE__));
$blog_version = $blog_version = substr(get_bloginfo(‘version’), 0, 3);
If ($blog_version >= $versionCheck) {
$pluginUrl .= ‘/custom-login2.css’;
}
else
{
$pluginUrl .= ‘/custom-login.css’;
}
echo ‘
‘;
}
function change_wp_login_url() {
echo bloginfo(‘url’);
}
function change_wp_login_title() {
echo ‘Powered by ‘ . get_option(‘blogname’);
}
add_action(‘login_head’, ‘bm_custom_login’);
add_filter(‘login_headerurl’, ‘change_wp_login_url’);
add_filter(‘login_headertitle’, ‘change_wp_login_title’);
?>
You can download both custom css file samples here…also need to upload login-title.jpg and login-bottom.gif image files in image directory of the theme.
custom-login.css
custom-login2.css
Thanks,
Shane G.
Popularity: 4%














