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. How User Can Change Header In Wordpress MU Blog – Customize Header In Wordpress MU Theme Hi, WordPress MU is the Custom header API. This service...
  2. Custom Login Page Wordpress Plugin Hi, This plugin is used to customize your wordpress login...
  3. Plugin: custom login page by Binary Moon Plugin: custom login page by Binary Moon Today I am...
  4. How To Add Images In Login/Logout Link In Wordpress? Hi, Wordpress code is an open source so any one...
  5. Customize Date Image Customize Date Image You can place your own image for...

Leave a Reply

You must be logged in to post a comment.