Using add_filter('login_headerurl', fn() => FRONTEND); i was able to change the login logo URL.

enter image description here

But i couldn't find a way to make it open in a new tab.

Or in other words, how can i add target="blank" to the login Logo link?

Kinda like:

<h1><a href="https://ex.com/" "title="Some title" target="_blank">Site Name</a></h1>
  • what is the login logo link? Do you mean the WordPress logo on wp-login.php?
    – Tom J Nowell
    Feb 14 at 10:06
  • yes that is what i mean
    – TheDoctor
    Feb 14 at 10:08


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.