Changing WordPress Login Page using Codex

It is generally assumed that the logo in the header is a link to the home page of the current site. If you change that, you may frustrate users.

That said, try

function my_login_logo_url() {
return 'https://example.com';
}

Hi @sterndata,

Thanks for replying. I tried the same but it didn’t work. Instead of that, it added wordpress.org

Regards,
Abhay

This works for me:

add_filter( 'login_headerurl', 'my_login_logo_url' );
function my_login_logo_url( $url ) {
return 'https://example.com';
} 

The code you’re using is using the wrong delimiters for a string. Don’t copy/paste, but retype to m ake sure you’re using the apostorphe/prime character.

Hi,

Thank you very much for your fast reply. It Worked for me 🙂

Thanks & Regards,
Abhay



Source link