Turbo SEO Tools Website will be sold. If you are interested to purchase check details

Best way to Change WordPress Login Logo Without any Plugin

Easily Change your WordPress website's default Login Logo, Login Page Title and URL


Best way to Change WordPress Login Logo Without any Plugin

Change WordPress Login Logo

To build a business website, you must change the login panel to match your brand. So change the WordPress login logo, URL, and title without using any plugins.

Want to change WordPress login logo, URL, and title without using any WordPress plugin. Here I shared some useful snippets that will be used to change the default login logo URL and title. So let start to change login page logo WordPress.

The WP snippet changes the logo that is displayed at yourwebsite[.]com/wp-login.php and yourwebsite[.]com/wp-admin

Change WordPress login logo

How to Change the WordPress login logo?

Add the snippets below to your theme's functions.php file to Change the default WordPress login logo.

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

How to Change WordPress Custom Logo URL?

The below snippet allows you to customize the URL that is attached to your login logo. Rather than link to WordPress.org, the logo will now link to your website home page.

function change_wp_login_url() {
	return bloginfo('url');
}
add_filter('login_headerurl', 'change_wp_login_url');

How to Change WordPress Login Page Title?

This snippet will change the title attribute of your login logo to the website title defined in your settings area.

function change_wp_login_title() {
	return get_option('blogname');
}
add_filter('login_headertitle', 'change_wp_login_title');

All of the above functions should be added to your theme functions.php file.

Source

Masum Billah

Authored By Masum Billah

My professional SEO and web development services are designed to deliver page one rankings in the major search engines. For your peace of mind, we only use safe, ethical and white hat SEO strategies! If you’re interested in working with me please drop me a line


leave a comment
Please post your comments here.