WordPress.org

Ready to get started?Download WordPress

Forums

Rename wp-login.php
[resolved] Register link isn' t working (5 posts)

  1. Tomi76
    Member
    Posted 8 months ago #

    Hello,

    I use your great plugin, thank you!

    I changed in my php-login file the follows:
    $login_header_url = __( 'http://wordpress.org/' ); to
    $login_header_url = __( 'http://mywebsite.hu/' );
    and
    $login_header_title = __( 'Powered by WordPress' ); to
    $login_header_title = __( 'Powered by mywebsite' );

    If I'm on login page, the header logo show to my website, and the title is what I set.

    If I turn on your "Rename wp-login.php" plugin, the url does not show to my website, it does show on wordpress.org, and the login header title is "Powered by WordPress too.

    Can you help me?

    Thanks

    http://wordpress.org/plugins/rename-wp-login/

  2. Tomi76
    Member
    Posted 8 months ago #

    I forgot the register link isn't working for me.
    I use the "sidebar login" plugin. If I logout from my website, the link "forgot password" is okay, but the "register" link go to 404 error page.
    If I choose the forgot password first, I get to the logon page, and If I choose that the register link, it works fine.

  3. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 8 months ago #

    You should never edit core files. Use filters instead, as documented here:
    http://codex.wordpress.org/Plugin_API/Filter_Reference/login_headerurl
    and you can do the same with login_headertitle.

    And for the plugin, you should contact the plugin author and ask them to use wp_registration_url() instead of hardcoding wp-login.php.

  4. Tomi76
    Member
    Posted 8 months ago #

    Hello Janneke!

    Thank you very much for your help!

    function the_url( $url ) {
    return get_bloginfo( 'url' );
    }
    add_filter( 'login_headerurl', 'the_url' );

    It works fine.

    But with the login_headertitle I can't do this.

    What code should I use?

    Thanks,

  5. Tomi76
    Member
    Posted 8 months ago #

    I found it, and works:

    // Change title for login screen

    add_filter('login_headertitle', create_function(false,"return 'URL Title';"));

    // change url for login screen

    add_filter('login_headerurl', create_function(false,"return home_url();"));

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.