WordPress.org

Ready to get started?Download WordPress

Forums

Method to change Login Title and URL (4 posts)

  1. Rajesh Namase
    Member
    Posted 1 year ago #

    On default login page "URL.com/wp-login.php" I want to change Logo URL (Default is wordpress.org) also I want to change titles. Old methods to change these are not working anymore. Please help.

  2. 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.

  3. Rajesh Namase
    Member
    Posted 1 year ago #

    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.

  4. Rajesh Namase
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic