New Landing How can we help? Themeforest Theme Support Neighborhood Separate Registration and Login Pages (Woocommerce)

Viewing 2 posts - 1 through 2 (of 2 total)
  • #169426
    veruschia
    Member
    Post count: 29

    Hi all,

    I finally figured out the code to have separate registration and login pages via individual links in the header.

    You will need to edit 2 files in your child theme: functions.php and form-login.php
    I have attached txt files for the code

    functions.php: You want to create a register link in the header that links to the login page but also sets an action indicating you have clicked register.
    So this:
    $aux_links_output .= ‘

  • ‘. __(“Login”, “swiftframework”) .’‘. “\n”;
    becomes this:
    $aux_links_output .= ‘
  • ‘. __(“Login”, “swiftframework”) .’‘. “\n”;
    $aux_links_output .= ‘
  • ‘. __(“Register”, “swiftframework”) .’‘. “\n”;

    form-login.php Code:
    Here you want to create an if,else statement. If you clicked register then goto register page, else goto login page:
    <?php if( isset( $_GET[‘action’]) && $_GET[‘action’] == “register”) : ?>
    Section for registration
    <?php else : ?>
    Section for Login form
    <?php endif; ?>

    Be careful of the wrappings

    Thanks
    Veruschia

  • Attachments:
    You must be logged in to view attached files.
#169466
Rui Guerreiro – SUPPORT
Keymaster
Post count: 25779

Hi,

Thanks for sharing your solution.

-Rui

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register