Mar
19

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%

Related posts:
  1. Custom Login Page WordPress Plugin Hi, This plugin is used to customize your wordpress login...
  2. Plugin: custom login page by Binary Moon Plugin: custom login page by Binary Moon Today I am...
  3. Code To Display Login/Register Link At WordPress Blog Hello All, In order to display Login/Register Link in wordpress...
  4. How to hide your wp-admin login page? How to hide your wp-admin login page? Change YOURSECRETWORDHERE to something...
  5. How To Customize 404 Page In WordPress Hi, A 404.php page that loads by default whenever an...

Leave a Reply

You must be logged in to post a comment.