• Resolved Yunis777

    (@yunis777)


    Hi,

    I would like to include an additional hyperlink on the login page managed by the LoginPress plugin. How can this be resolved?

    Regards,

    Yunis

    • This topic was modified 6 years ago by Yunis777.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hi, @yunis777

    You can use the gettext hook for adding the additional hyperlink on the login page.

    Example:

    function prefix_lost_your_password ( $text ) {
            if ($text == 'Lost your password?'){
                $text .= '<br /><a href="https://wpbrigade.com">Your Custom Link</a>';
            }
        return $text;
    }
    add_filter( 'gettext', 'prefix_lost_your_password' );
    Thread Starter Yunis777

    (@yunis777)

    I’m not familiar with PHP coding. What about some code that can change the link with the ‘Register’ link to https://mywebsite.com/another-registration-page&#8217;? Do you know what i mean?

    • This reply was modified 6 years ago by Yunis777.
    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hi, @yunis777

    For changing the Registration URL, you have to know a bit knowledge about PHP. Here’s a snippet for changing the registration URL.

    add_filter( 'register_url', 'prefix_my_register_page' );
    function prefix_my_register_page( $register_url ) {
        return home_url( '/register/' );
    }

    If you need any furthur help regarding PHP code, please contact @ WPBrigade.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Including hyperlink on login page’ is closed to new replies.