-
Author
-
June 10, 2016 at 17:56 #125199
srcnc
ParticipantHi, I’d like to make redirect to my account page after user’s login. Now it’s going to homepage after login. Could you please advise how to do it? I tried to select “redirect to current user profile or author page” on theme options, but it comes with another problem. After I selected this option, I can’t go to home page. Whenever I clicked logo or home menu, it goes to my profile(my account) page…;-((
Please help me out. Thanks much in advance~
June 13, 2016 at 17:30 #125379Radu
ModeratorHi, Please leave all that settings regarding the redirection to default values and use plugin : https://wordpress.org/plugins/peters-login-redirect/ Install Peters Login Redirect plugin. Set your custom redirect to WP default, then in Peters plugin settings, set the login redirect to http://www.yoursite.com/members/[variable]username[/variable] OR you can use instead the plugin this function , that should be added into wp-content/themes/kleo-child/functions.phpfunction sq7_rdu_redirect( $redirect_to, $request, $user ) { $redirect_to = bp_core_get_user_domain($user->ID) . 'profile/'; return $redirect_to; } add_filter('login_redirect', 'sq7_rdu_redirect', 11, 3);Note : Child theme needs to be installed and activated Cheers R. -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘General questions’ is closed to new topics and replies.