How to Change WordPress Default Login Logo and URL

Security in WordPress is taken very seriously. But as with any other system there are potential security issues that may arise if some basic security precautions aren’t taken. there are so many tutorial on WordPress security tips WordPress security best practices. One of the most important thing you might want to do for security is to change WordPress default login url. This article will go through the basic way on how to change WordPress default login url, logo and title.

How to change the logo and logo url?

Replacing default login page logo is very easy. Just open your function.php file in your active theme directory. Now past the following code and customize it a little.

function technig_login_logo() {
	echo '<style type="text/css">h1 a { background: url('.get_bloginfo('template_directory').'/images/logo.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'technig_login_logo');

This function will look for image folder in your theme directory that contain a logo.png picture. Make sure you have the correct directory.

Change the url?

When you click on the logo, by default, it will open WordPress.org. To change the url to open your own site, apply the following function.

function technig_login_logo_url() {
	return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'technig_login_logo_url' );

function technig_login_logo_url_title() {
return 'Your Site Name and Info';
}
add_filter( 'login_headertitle', 'technig_login_logo_url_title' );

change the title the way you want.

 

How You Can Change WordPress Default Login URL?

For security reason, you need to change WordPress default login url. It means, instead of going to youriste.com/wp-admin or yoursite..com/wp-login, you can enter the yousite/user/login. The best way to change the login page easily is to use any plugin. The We recommend you Custom Login URL plugin. But if you are developer, you can use code in your function.php file to do this. It require you design a new login page template and need a  lot of configuration. Custom Login URL is the best option you can use for now.

WordPress Custom Login URL Plugin

You are using this plugin to make your site more secure. So, make sure to check the update change log for WordPress and the capability of the plugin with version of your WordPress site.

Conclusion

I hope it has been informative and helpful. Security is an important aspect for every site. So, we hope it helped you make your site look the way you want and make it a little more secure. If you have any type of question about WordPress, feel free to comment it below. 🙂

WordPress DeveloperWordPress Tips
Comments (2)
Add Comment
  • Asus Laptop

    I reaⅼly like ⅼooking through a post that wiⅼl maҝe men аnd women tһink.
    Also, tɦank you for allowing me tߋ сomment!

  • Graphic design occupations

    Nice article. Thanks for the read.amazing