> For the complete documentation index, see [llms.txt](https://byduoc.gitbook.io/change-link-my-an-account/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://byduoc.gitbook.io/change-link-my-an-account/postero.md).

# Postero

You want click "create an account" to link my account page.

Please use the child theme then add code below in the functions.php file of the child theme.

```
if (!function_exists('postero_form_login')) {
    function postero_form_login() {

        $register_link = wp_registration_url();
        ?>
        <div class="login-form-head">
            <span class="login-form-title"><?php esc_attr_e('Sign in', 'postero') ?></span>
            <span class="pull-right">
                <a class="register-link" href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?>"
                   title="<?php esc_attr_e('Register', 'postero'); ?>"><?php esc_attr_e('Create an Account', 'postero'); ?></a>
            </span>
        </div>
        <form class="postero-login-form-ajax" data-toggle="validator">
            <p>
                <label><?php esc_attr_e('Username or email', 'postero'); ?> <span class="required">*</span></label>
                <input name="username" type="text" required placeholder="<?php esc_attr_e('Username', 'postero') ?>">
            </p>
            <p>
                <label><?php esc_attr_e('Password', 'postero'); ?> <span class="required">*</span></label>
                <input name="password" type="password" required
                       placeholder="<?php esc_attr_e('Password', 'postero') ?>">
            </p>
            <button type="submit" data-button-action
                    class="btn btn-primary btn-block w-100 mt-1"><?php esc_html_e('Login', 'postero') ?></button>
            <input type="hidden" name="action" value="postero_login">
            <?php wp_nonce_field('ajax-postero-login-nonce', 'security-login'); ?>
        </form>
        <div class="login-form-bottom">
            <a href="<?php echo wp_lostpassword_url(get_permalink()); ?>" class="lostpass-link"
               title="<?php esc_attr_e('Lost your password?', 'postero'); ?>"><?php esc_attr_e('Lost your password?', 'postero'); ?></a>
        </div>
        <?php
    }
}
```

Choose Page My Account,  Go to WooCommerce > Settings > Advanced.

![](https://116778-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAngh8z22SV1W1zn3KR%2F-MAngpw7SgBpKjaOav9h%2F-MAnhsaQiPLQFkd59TlZ%2Fwoocommerce-page-setup.png?alt=media\&token=8e56ad18-a953-44c9-828f-9c7766a1aaed)

To add this form, you need to install the WooCommerce plugin and go to **WooCommerce->Settings** of your dashboard. Click on the **Privacy and Accounts** section and check the option to the **Allow customers to create an account on the “My Account” page** option.

![](https://116778-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAngh8z22SV1W1zn3KR%2F-MYwKSZkE-woCbdRIaR7%2F-MYwMYBUJbAaSRTrlxCh%2FScreenshot%20at%20Apr%2023%2008-34-27.png?alt=media\&token=0e74c1c6-e59e-4d27-b8f9-3f0fb0b77432)

Then check again the issue.
