-
Author
-
January 10, 2018 at 08:13 #185368
alexlii
ParticipantHello,
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 #185457Laura
ModeratorHello, 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 solutionJanuary 12, 2018 at 16:14 #185585Radu
ModeratorHi
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 #185586Radu
ModeratorHi
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
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘General questions’ is closed to new topics and replies.