384

How to Change the Login Header Text in WordPress

Powered by WPCodeBox

This snippet provides the code and instructions to change the login page header text in WordPress, helping you customize your site’s appearance.


<?php

/**
 * Replaces the login header logo text
 *
 * @param $title
 */
add_filter( 'login_headertext', function ( $title ) {
    $title = get_bloginfo( 'name' );
    return $title;
} );

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.