• Resolved bluesky10

    (@jouielovesyou)


    Hello I set my form to display only to logged-in users. How can I change the URL of the login link when a non-registered visitor tries to access the form? I have a custom login page setup so how can I direct the login to that page?

Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hello, currently there is not a filter for that particular URL, but I like the idea and will add it in the next version. In the meantime, you can workaround by adding the following jQuery snippet to the same page that displays the form:

    <script>
    jQuery(document).ready(function($) {
    	$('a[href="https://example.com/wp-login.php"]').attr('href', 'https://example.com/whatever/');
    });
    </script>

    For this to work, you will need to change https://example.com/wp-login.php to match the URL that currently is displayed. Then you can change the https://example.com/whatever/ to be whatever URL you would like to use instead.

    Thank you for the feedback, will get a filter added to the next version.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing the URL for the login page’ is closed to new replies.