-
Author
-
January 23, 2016 at 06:00 #100101raafat1403Participant
I went through the FAQ and find how to redirect the user to his profile after login and the answer was:
Add this code snippet to sweetdate-child/functions.php
12345678910/* Filter the redirect url for login*/add_filter(“login_redirect”,“kleo_redirect_to_profile”,100,3);function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){/*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/if(!is_super_admin($user->ID))return bp_core_get_user_domain($user->ID );elsereturn $redirect_to_calculated; /*if site admin*/}I paste the above-mentioned code but the following message came up…how to fix it please because it is still there even after i deleted that code.
Warning: Cannot modify header information – headers already sent by (output started at /home2/raafat/public_html/matchingzone.com/wp-content/themes/sweetdate-child/functions.php:21) in/home2/raafat/public_html/matchingzone.com/wp-includes/pluggable.php on line 1228
Hi sir
Thanks I got it… members in total solved..
One more questioin:
When someone login and i need him/her to see his name on the top next to the profile button…how can i do it?
How to change the -Serious dating with Sweet date
Your perfect match is just a click away- in the search form?Thanks in advance
January 23, 2016 at 13:32 #100122AbeKeymasterHi, you probably did something wrong and didn’t paste the code correctly. Please try to stick to theme problems and not problems generated by you.
For redirection you should use Peter’s redirect plugin which should do the job for you.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
You must be logged in to reply to this topic.