Login and Register Redirection
Home › Forums › WpStream Theme › Theme Issues › Login and Register Redirection
- This topic has 5 replies, 2 voices, and was last updated 4 months ago by
admin.
- AuthorPosts
- December 16, 2020 at 12:13 pm #103016
Charles Musisi
ParticipantHello, i would like to redirect the Customer to a custom or certain page after login and registration but not redirecting them to My Account page ,using your theme, but i have checked all the functions.php but i can’t find the exact login code and registration, help me how can i do this, i have tried to use some external redirects but not work, is there any particular file i can use or a code snippet, Thank You.
December 17, 2020 at 2:51 pm #103211admin
KeymasterHello,
For login – go libs/css_js_include.php and at line 42 you have
‘login_redirect’ => get_permalink( get_option(‘woocommerce_myaccount_page_id’) ),replace “get_permalink( get_option(‘woocommerce_myaccount_page_id’) ), ” with “http://yoursite.com/page”,
Thank you
December 17, 2020 at 4:01 pm #103221Charles Musisi
ParticipantThis is not correct am getting an Error and I would also like to redirect the user after Registration
December 17, 2020 at 4:12 pm #103223Charles Musisi
ParticipantWorked on it how do I redirect after User Registration, which code can I edit
December 17, 2020 at 4:42 pm #103226Charles Musisi
ParticipantBecause when the user Registers, is again requested to go back to login page
December 21, 2020 at 10:16 am #103791admin
KeymasterHi,
This is not correct am getting an Error and I would also like to redirect the user after Registration
– make sure you write the code according to php standards
Registration – there is no redirect after registration – you remain on the same form and just need to switch to login form and use your credentials : http://prntscr.com/w72f6y
Thank you
- AuthorPosts
- You must be logged in to reply to this topic.