-
Author
-
January 22, 2016 at 12:27 #99932love2playgamesParticipant
Hi 7queen,
I am wondering is the bp_custom.php should look like this with these code inside or should be empty? The reason why I am asking, I put the logout redirect codes after the ?> it gave me white page (site) ?
There are also other code i put in, it also make the site white page?
The bp_custom.php is locate in the plugin directory btw…
/public_html/wp-content/plugins/
Please advice, thanks
Attachments:
You must be logged in to view attached files.January 22, 2016 at 17:40 #100001RaduModeratorHi,
I think your white page is caused by that redirect function
Please replace that redirect function with that
COPY CODE/----------------------------------------------------------------------------/ // redirects for login / logout /----------------------------------------------------------------------------/ add_filter('woocommerce_login_redirect', 'login_redirect'); function login_redirect($redirect_to) { return home_url(); } add_action('wp_logout','logout_redirect'); function logout_redirect(){ wp_redirect( home_url() ); exit(); }
If the function not working please remove redirect related codes from that file and install this plugin https://wordpress.org/plugins/peters-login-redirect/
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 22, 2016 at 22:02 #100041love2playgamesParticipantHi Radu,
I am confuse on this, I am getting a white page unless I still am doing something wrong? Would it possible you can provide an exact codes includes my original what’s in the bp-custom.php on a text.txt? That way I know exact what’s in there..
BTW, if not using these codes, it goes to the members page after logout, not sure is normal or not?
Please advice, Thanks
January 22, 2016 at 22:39 #100047love2playgamesParticipantHi Redu,
Please disregard my last message, yeah, I got it going btw.
Thanks so much for your help 🙂
January 25, 2016 at 14:01 #100330RaduModeratorHi,
Great, have a nice week.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.