How to Change the Logo URL or Logo Title on WordPress Login Page

The default WordPress login page shows the WordPress logo, and when clicked, it links to wordpress.org. If you’re building a custom site or branding a client’s website, it’s a great idea to change this link to point to your site’s homepage or any custom URL.

To Change the Logo URL or Logo Title on WordPress Login Page Use Below Code.

Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme.

Change the Logo URL on WordPress Login Page

function custom_login_logo_url() {
    return home_url(); // or any custom URL
}
add_filter('login_headerurl', 'custom_login_logo_url');

Change the Logo Title on WordPress Login Page

add_filter('login_headertext', function () {
    return get_bloginfo('name');
});

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *