Support » Plugin: Custom Login Page Customizer | LoginPress » Including hyperlink on login page

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' );

    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‘? Do you know what i mean?

    • This reply was modified 3 months, 2 weeks 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)
  • You must be logged in to reply to this topic.