Logout to a login page instead of wordpress login

Professional social WordPress theme with metro design, fully-adjustable grid widget and BuddyPress support.
GK User
Tue Oct 29, 2013 8:59 pm
Hello,

When you logout, it takes you to the wordpress login screen. Can you logout to a custom login page?

Thank you!
User avatar
Fresh Boarder

GK User
Tue Oct 29, 2013 9:49 pm
Is it a standard wp-admin logout, or user section logout? Could you post an url to your website and provide (PM) login that enables login/logout?
Please send me a PM with:
1. URL to your website
2. login and password of user withlogin/logout privileges (please create one for me)
3. link to this thread
User avatar
Moderator

GK User
Tue Oct 29, 2013 10:01 pm
User avatar
Fresh Boarder

GK User
Tue Oct 29, 2013 10:20 pm
Please edit file:
/wp-content/themes/Msocial/layouts/login.php

and change:
Code: Select all
<a href="<?php echo wp_logout_url(); ?>" class="btn button-primary" title="<?php _e('Logout', GKTPLNAME); ?>">

to:
Code: Select all
<a href="<?php echo wp_logout_url( home_url() ); ?>" class="btn button-primary" title="<?php _e('Logout', GKTPLNAME); ?>">


It will make the redirect to go back to homepage. If you would like to redirect to other place, please write back with information where the redirect should point.
User avatar
Moderator

GK User
Tue Oct 29, 2013 11:29 pm
That worked. Thanks!

Could I create a separate page for "lost password"?
User avatar
Fresh Boarder

GK User
Thu Oct 31, 2013 3:20 pm
This requires some custom coding. We don't provide that kind of customization, but if You feel the power, please check this great tutorial on creating custom reset password WP page:
http://www.tutorialstag.com/wordpress-c ... ment-47026
User avatar
Moderator


cron