change Already have a user account url

on my join now page there is a link at the bottom of the page

Already have a user account?

I would link to change where this link points to, is this possible?

  • Ash

    Hello Matthew,

    Please try the following code:

    add_action( 'wp_head', function() {
        ?>
        <script type="text/javascript">
        jQuery(function($){
            $( "#ms-shortcode-register-user-form a[title=Login]" ).attr( 'href', 'http://google.com' );
        });
        </script>
        <?php
    } );

    Replace google.com with your desired URL.

    You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you use mu-plugins then add a php start tag at the beginning of the code.

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.