This topic has 13 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #155645
     Gus
    Participant

    Hi. I am using Accespress Social login. it was working fine but all of a sudden users who sign in with Kleo Sign ( i have a custom login page with accespress buttons and Kleo login on it.)  The accespress buttons take me to home page but Kleo Login takes me to Wp-admin login no matter wat setting i put in redirect field in KleoSettings/miscellaneous/Popup redirect. Also changed /Home page redirect.

     

    Thanks

     

     

    #155731
     Laura
    Moderator

    Hello, have you tried using https://wordpress.org/plugins/peters-login-redirect/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #156696
     Gus
    Participant

    Hi. Yes. Tried that too. but didn’t work.

    #156788
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #156955
     Radu
    Moderator

    Hi,

    Do you have added any redirect rule in wp-content/themes/kleo-child/functions.php ?

    If yes remove it,
    If not you to set your destination after login

    COPY CODE
    
    function sq7_rdu_redirect( $redirect_to, $request, $user ) {
        $redirect_to = '/my-route-after-redirect/';
        return $redirect_to;
    }
    add_filter('login_redirect', 'sq7_rdu_redirect', 11, 3)
    

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #156997
     Gus
    Participant

    Hi Radu. I am trying to redirect with Kleo options on Theme options/ Miscelaneous.

    I have checked functions.php and commented out anything having to do with redirection. I have attached the funtions PhP file. All redirection have been greyed out. Tried your code but got downed website. Maybe missing something. I have deactivated Accespress Plugin to troubleshoot and still Kleo Login redirects to backend login.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #157113
     Radu
    Moderator

    Hi,

    I’ve missed ; from the end

    Copy again the code form here : https://pastebin.com/raw/PLh95nd7

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #157138
     Gus
    Participant

    I pasted this:

    function sq7_rdu_redirect( $redirect_to, $request, $user ) {
    $redirect_to = ‘https://www.xn--moa-8ma.com/’;
    return $redirect_to;
    }
    add_filter(‘login_redirect’, ‘sq7_rdu_redirect’, 11, 3);

    Did i get the link pasted correctly? If yes. Then it is not working still.

    Thanks

    #157242
     Radu
    Moderator

    Hi,

    Try again with this one

    function sq7_rdu_redirect( $redirect_to, $request, $user ) {
    $redirect_to = ‘https://www.xn--moa-8ma.com/’;
    return $redirect_to;
    }
    add_filter(‘login_redirect’, ‘sq7_rdu_redirect’);

    If this still not works install a plugin like: https://ro.wordpress.org/plugins/peters-login-redirect/ to handle redirects

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #158105
     Gus
    Participant

    I have found bug on main theme Kleo/functions.php ‘loginUrl’ => site_url( ‘wp-login.php’, ‘login_post’ ), when i changed the loginUrl to my page then it works. But when i update my theme then my changed will lost . Can loginUrl is maintain by child theme or please suggest me any setting about that.

    #158315
     Gus
    Participant

    Hello?

    #158466
     Radu
    Moderator

    You can paste this function to child theme functions https://pastebin.com/raw/1Wi280m4
    And inside it to make your desired changes in your case the login url.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #158669
     Gus
    Participant

    Thank you Radu. That worked.

    #158851
     Radu
    Moderator

    You’re welcome
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?