Customize WordPress logo title attribute

Customizing your Wordpress logo title attribute in the login page is another

The title attribute that ships by default with WordPress is ‘Powered By WordPress’. You may wonder if it is possible to replace it with another text that would make more sense. For example your website or company’s name. Thanks to WordPress filters we can

Thanks to WordPress built-in filters it is very easy to customize the logo title attribute.

The PHP code snippet below will help you replace the title attribute that shows when you hover over the logo on the login page of your WordPress website. It will use your website name as an alternative to the default title attribute.

PHP
add_filter( 'login_headertitle', 'wph_login_logo_title' );
function wph_login_logo_title( $title ) {
	$title = get_bloginfo( 'name' );
	return $title;
}

If you want to use a specific text to customize your logo title attribute then just assign your text as a value to the variable $title. The final snippet will be as follows.

PHP
add_filter( 'login_headertitle', 'wph_login_logo_title' );
function wph_login_logo_title( $title ) {
	$title = 'Write your custom title attribute here';
	return $title;
}

In case you want to customize the login logo as well please use the snippet on this page.