Home Forums Basel support forum create an account redirect to login form in my account page

create an account redirect to login form in my account page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #134126

    yoyo123
    Participant

    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

    #134151

    Hello,

    This is the way this functionality works. Our theme does not influence. This page has two forms: login and register.

    Best Regards

    #134199

    yoyo123
    Participant

    In your demo bzael site in your site. it redirect to the register form, not to the login form

    how?

    #134342

    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

    #134444

    yoyo123
    Participant

    thank you, work well

    #134500

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘create an account redirect to login form in my account page’ is closed to new replies.