Change the WordPress Login Logo URL to Your Website

Problem/Use Case:
By default, the WordPress login logo links to wordpress.org. You may want it to point to your homepage.

Snippet:

// Change login logo URL
function custom_login_logo_url() {
    return home_url();
}
add_filter('login_headerurl', 'custom_login_logo_url');

Explanation:
This redirects the login logo link to your site’s homepage.

Where to Place It:
In functions.php. or a custom snippet plugin

Bonus Tip:
Pair this with a custom logo for a fully branded login page.

Ndifon Luke
Ndifon Luke

Ndifon Luke is the founder & owner of Uncle Luke Digitals—a web design, digital marketing freelancer based in Bamenda, Cameroon. He has over 6 years of expertise in digital marketing and is very passionate about working with clients in achieving their business objectives.