×

How to Customize Login Screen without plugin

Customized Login Screen in WordPress

This function is handy when we develop a customize solution to sell. This simple tricks  is going to change the background login screen logo according to your requirement.

Customize Login Screen in WordPress

How to change Login screen in WordPress

The whole process is divided into tiny three steps, In our first step, we are going to replace default WordPress logo with our very own Custom Login Logo screen logo.

Remember this custom Login Logo must be inside your theme’s Image folder with name as listed in the below code

Step 1 : Change Default WordPress Login screen Logo

Just open your functions.php file and copy paste the following code

[code]

function my_custom_login_logo() {
echo ‘<style type=”text/css”>
h1 a { background-image:url(‘.get_bloginfo(‘template_directory’).’/images/custom-login-logo.gif) !important; }
</style>’;
}

[/code]

Step 2 : Function to Change Custom Login Screen URL

Step 1 will only replace default login logo but the URL attached with that logo will still point to WordPress.org, Now its time to replace this with our very Own blog/site URL.

Copy paste the below code inside your function.php file

[code]
function change_wp_login_url() {
echo bloginfo(‘url’);
}

[/code]

Step 3 :Function to Change Login Screen Title

Now its time to change the title of your Login screen to something that will suite to your website. Again copy and paste the following code

[code]

function change_wp_login_title() {
echo get_option(‘blogname’);
}

[/code]

Step 4:  Its Show Time

Just add the below code to actually direct WordPress engine to make the necessary changes

[code]

add_filter(‘login_headerurl’, ‘change_wp_login_url’);
add_filter(‘login_headertitle’, ‘change_wp_login_title’);
add_action(‘login_head’, ‘my_custom_login_logo’);

[/code]

Nothing else, just go back and enjoy your customize login screen.

rakesh

The Whole concept was developed by the man you are watching here. I am rakesh Kumar Serial Niche Blogger and SEO Enthusiast. find me on Google+ , facebookandon twitter.. Developed popular WordPress theme for Wallpapers and funny Image WordPress theme. Love SEO optimized WordPress theme Designing and Customization.
Related Posts

2 thoughts on “How to Customize Login Screen without plugin”

  1. This looks really nice. I am going to try this in my spare time. I hate to use too many wordpress plugins and it is good to know that I can do things without using so many plugins.

Leave a Reply

Your email address will not be published.

+-