WordPress.org

Ready to get started?Download WordPress

Forums

WP Modal Login
[resolved] Hyperlink "Lost your password" text? (5 posts)

  1. therandomguy12345
    Member
    Posted 1 year ago #

    @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/

  2. Cole Geissinger
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. therandomguy12345
    Member
    Posted 1 year ago #

    @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!

  4. therandomguy12345
    Member
    Posted 1 year ago #

    @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?

  5. therandomguy12345
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic