# Postero

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.

![](/files/-MAnhsaQiPLQFkd59TlZ)

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.

![](/files/-MYwMYBUJbAaSRTrlxCh)

Then check again the issue.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://byduoc.gitbook.io/change-link-my-an-account/postero.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
