-
Author
-
October 12, 2013 at 06:41 #4249CenkParticipant
When I sign up with the wrong password or username, the website directs me to the WordPress login page. I would like to change that. Redirecting the WordPress’s Login to a custom login page would be good. Or If the Sweetdate pop-up login stays, and tells me that I should try it again.
I tried the code below, but it doesn’t work.
function possibly_redirect(){
global $pagenow;
if( ‘wp-login.php’ == $pagenow ) {
if ( isset( $_POST[‘wp-submit’] ) || // in case of LOGIN
( isset($_GET[‘action’]) && $_GET[‘action’]==’logout’) || // in case of LOGOUT
( isset($_GET[‘checkemail’]) && $_GET[‘checkemail’]==’confirm’) || // in case of LOST PASSWORD
( isset($_GET[‘checkemail’]) && $_GET[‘checkemail’]==’registered’) ) return; // in case of REGISTER
else wp_redirect( home_url() ); // or wp_redirect(home_url(‘/login’));
exit();
}
}
add_action(‘init’,’possibly_redirect’);Thank you!
October 12, 2013 at 06:46 #4250CenkParticipantThis code doesn’t work either
add_action(‘init’,’custom_login’);
function custom_login(){
global $pagenow;
if( ‘wp-login.php’ == $pagenow ) {
wp_redirect(‘http://thelovetub.com/’);
exit();
}
}October 12, 2013 at 20:25 #4284SQadminKeymasterHi, I can’t think why is that error coming up.
We are working to add to v2.2 the ability to login directly form the popup.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 12, 2013 at 20:51 #4291CenkParticipantThat would be great:) I would like to update without losing the editing files. Is that possible? I
And is there a link for the popup login? I can’t find it. Thank you very much.October 14, 2013 at 14:07 #4349SQadminKeymasterTo update without losing your changes you have to use the sweetdate-child theme and to have there all your modified templates.
If you have looked at the existing anchor that triggers the login modal you would have seen it is like this:COPY CODE<a href="#" data-reveal-id="login_panel" class="tiny secondary button radius">LINK
So this is what you need to have: data-reveal-id=”login_panel”
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.