-
Author
-
January 10, 2018 at 08:13 #185368alexliiParticipant
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
January 11, 2018 at 01:12 #185457LauraModeratorHello, 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 solutionLaura 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 🙂
January 12, 2018 at 16:14 #185585RaduModeratorHi
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 solutionJanuary 12, 2018 at 16:14 #185586RaduModeratorHi
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 -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.