create an account redirect to login form in my account page
-
when i go to menu in the header “login / register” -> No account yet? Create an Account -> it redirect to the login form and to the register form
what needs to do?
thanks
Hello,
This is the way this functionality works. Our theme does not influence. This page has two forms: login and register.
Best Regards
In your demo bzael site in your site. it redirect to the register form, not to the login form
how?
Hello,
Please add this code to the functions.php of the child theme:
function basel_sidebar_login_form() {
$account_link = get_permalink( get_option( 'woocommerce_myaccount_page_id' ) );
if ( ! basel_get_opt( 'login_sidebar' ) || is_user_logged_in() || ! basel_woocommerce_installed() ) return;
?>
<div class="login-form-side">
<div class="widget-heading">
<h3 class="widget-title"><?php esc_html_e( 'Sign in', 'basel' ); ?></h3>
<a href="#" class="widget-close"><?php esc_html_e( 'close', 'basel' ); ?></a>
</div>
<div class="login-form">
<?php basel_login_form( true, $account_link ); ?>
</div>
<div class="register-question">
<span class="create-account-text"><?php esc_html_e( 'No account yet?', 'basel' ); ?></span>
<a class="btn btn-style-link" href="<?php echo esc_url( add_query_arg( 'action', 'register', $account_link ) ); ?>"><?php esc_html_e( 'Create an Account', 'basel' ); ?></a>
</div>
</div>
<?php
}
add_action( 'basel_after_body_open', 'basel_sidebar_login_form', 10 );
Best Regards
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘create an account redirect to login form in my account page’ is closed to new replies.