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

  • Author
  • #185368
     alexlii
    Participant

    Hello,

    I enable the Kleo for all subsites,  and how to redirect users back to the previous page after login in multisite?

    I searched for the answers but it seems it is related to theme, would you please let me know how to do that, thanks.

     

    Alex

    #185457
     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 🙂

    #185585
     Radu
    Moderator

    Hi

    just use this snippet

    COPY CODE
    
    /* Redirect to referred page */
    function sq_r_redirect_to_previous_location_after_login($redirect_to)
    {
        $redirect_to = wp_get_referer();
        return $redirect_to;
    
    }
    add_filter('login_redirect','sq_r_redirect_to_previous_location_after_login',100 ,3);
    

    NOTE : Child theme needs to be installed and activated.

    The function will have to be added in wp-content/themes/kleo-child/functions.php

    Cheers
    R.

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

    Hi

    just use this snippet

    COPY CODE
    
    /* Redirect to referred page */
    function sq_r_redirect_to_previous_location_after_login($redirect_to)
    {
        $redirect_to = wp_get_referer();
        return $redirect_to;
    
    }
    add_filter('login_redirect','sq_r_redirect_to_previous_location_after_login',100 ,3);
    

    NOTE : Child theme needs to be installed and activated.

    The function will have to be added in wp-content/themes/kleo-child/functions.php

    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 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?