Support » Fixing WordPress » Method to change Login Title and URL

Viewing 3 replies - 1 through 3 (of 3 total)
  • Drew Jaynes

    (@drewapicture)

    WordPress Core Developer

    You should still be able to filter the header URL via the login_headerurl hook and the header title via the login_headertitle hook.

    Just make sure you’re returning the value not echoing it.

    Hello Drew, thanks for the reply, I’m using following functions which are not working anymore 🙁

    function change_wp_login_url() {
    echo bloginfo('url');
    }
    add_filter('login_headerurl', 'change_wp_login_url');
    
    function change_wp_login_title() {
    echo get_option('blogname');
    }
    add_filter('login_headertitle', 'change_wp_login_title');

    Please tell me what’s wrong with above code, thanks.

    function change_wp_login_title() {
    echo get_option('blogname');
    }
    add_filter('login_headertitle', 'change_wp_login_title');

    this method is working on my blog and other login_headerurl showing wrong URL and also displaying blog URL at right top corner in plain text.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Method to change Login Title and URL’ is closed to new replies.