Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter w3thax

    (@w3thax)

    Actually I found in my functions.php of the theme the code, that Chad was talking about in some older version. The redirect url in this code was wrong and did redirect to the same page as the login page. This was probably an old setting of the last webmaster. I updated it with the new URL. This worked. Than I tried to remove this completely and than it worked out of the box.

    If you want to try the setting Chad mentioned, do the following:
    1) Go to Design => Editor => select the functions.php
    2) At the top, under “<?php” add this code:

    add_filter( 'wpmem_login_redirect', 'my_login_redirect', 10, 2 );
     
    function my_login_redirect( $redirect_to, $user_id ) {
        // return the url that the login should redirect to
        return 'https://yourdomain.com/your-page';
    }

    3) Edit the return URL to the URL you want to redirect the user.
    4) Save your changes at the bottom of the page.

    Get back to @cbutlerjr or me when it doesn’t work afterwards. ??

    Cheers,
    w3thax

    Thread Starter w3thax

    (@w3thax)

    Thanks, that helped.

    Thread Starter w3thax

    (@w3thax)

    I noticed some minutes ago: CSS was broken again. deactivated the plugin until I find a solution…

Viewing 3 replies - 1 through 3 (of 3 total)