Nutreko
You want click "create an account" to link my account page.
if (!function_exists('nutreko_form_login')) {
function nutreko_form_login() {
$register_link = wp_registration_url();
if(nutreko_is_woocommerce_activated()){
if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ){
$register_link = wc_get_page_permalink('myaccount');
}
}
?>
<div class="login-form-head">
<span class="login-form-title"><?php esc_html_e('Sign in', 'nutreko') ?></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', 'nutreko'); ?>"><?php esc_html_e('Create an Account', 'nutreko'); ?></a>
</span>
</div>
<form class="nutreko-login-form-ajax" data-toggle="validator">
<p>
<label><?php esc_html_e('Username or email', 'nutreko'); ?> <span class="required">*</span></label>
<input name="username" type="text" required placeholder="<?php esc_attr_e('Username', 'nutreko') ?>">
</p>
<p>
<label><?php esc_html_e('Password', 'nutreko'); ?> <span class="required">*</span></label>
<input name="password" type="password" required
placeholder="<?php esc_attr_e('Password', 'nutreko') ?>">
</p>
<button type="submit" data-button-action
class="btn btn-primary btn-block w-100 mt-1"><?php esc_html_e('Login', 'nutreko') ?></button>
<input type="hidden" name="action" value="nutreko_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?', 'nutreko'); ?>"><?php esc_html_e('Lost your password?', 'nutreko'); ?></a>
</div>
<?php
}
}


Last updated