• Resolved therandomguy12345

    (@therandomguy12345)


    @brainfestation
    @cole Geissinger

    I wanted to change the functionality of the “Lost your passwword?” text at the bottom of the modal login window. Currently, it takes me to another modal window screen with input for an email address or username to reset password. Instead, I wanted the “Lost your password?” text to simply take me to another URL (static URL; ex: mydomain.com/reset) on my site. Users will handle the reset password process from that page (instead of the default WordPress method, handled with your plugin).

    I know this is not an out-of-the-box feature, but it doesn’t seem like it’s difficult. I just want to change the current link to a hyperlink to another page/URL. I’m fine making manual changes to the plugin’s core code, if you can tell me how (what file, what to edit)?

    Please respond as soon as possible. Thanks in advance.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Cole Geissinger

    (@brainfestation)

    While I don’t recommend changing the core code as you run the risk of loosing the changes in future updates, but you can do what you want with it 🙂

    Navigate to and open wp-modal-login/includes/class-wp-modal-login.php

    On line 507 you’ll find this code
    echo '<a href="#forgotten" class="wpml-nav">' . __( 'Lost your password?', 'geissinger-wpml' ) . '</a>';

    just change what’s inside of the href attribute and it should just work? The tabbing functionality is hooked onto that value so changing that will cause your users to be redirected the new page you link to in there.

    Thread Starter therandomguy12345

    (@therandomguy12345)

    @brainfestation
    @cole Geissinger

    I’ll try this as soon as possible. Once I get my other reset password process all configured.

    Please keep the topic open for replies till then, because it’s not super unlikely that some issues will come about. Anyways, thanks for the help!

    Thread Starter therandomguy12345

    (@therandomguy12345)

    @brainfestation
    @cole Geissinger

    For testing purposes, I just tried your solution (with a dummy URL):
    echo '<a href="http://mydomain.com">' . __( 'Lost your password?', 'geissinger-wpml' ) . '</a>';

    For some reason, the redirect still doesn’t work. It sends me to the same password reset modal window?

    Thread Starter therandomguy12345

    (@therandomguy12345)

    @brainfestation
    @cole Geissinger

    It was a caching issue. I fixed it. You can keep this as resolved and closed. I’ll start new thread if I have issues again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hyperlink "Lost your password" text?’ is closed to new replies.