Your account expired support, please renew to get your support.
HomePage › Forums › Themes Support › Freshio – Organic & Food Store WordPress Theme › Edit Login Form Popup
- This topic has 5 replies, 3 voices, and was last updated 2 years, 1 month ago by Billy Nguyen.
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
March 25, 2022 at 1:13 am #21576salvorezoSupport ExpiredMarch 25, 2022 at 9:39 am #21588
Hi you,
#1. I fixed this issue.
#2. Login via Google or Facebook:
Step 1: Install this plugin: Nextend Social Login and Register and setup login via Google or Facebook.
Step 2: Copy function “freshio_form_login” to child-theme:
function freshio_form_login() { if (freshio_is_woocommerce_activated()) { $account_link = get_permalink(get_option('woocommerce_myaccount_page_id')); } else { $account_link = wp_registration_url(); } ?> <div class="login-form-head"> <span class="login-form-title"><?php esc_attr_e('Sign in', 'freshio') ?></span> <span class="pull-right"> <a class="register-link" href="<?php echo esc_url($account_link); ?>" title="<?php esc_attr_e('Register', 'freshio'); ?>"><?php esc_attr_e('Create an Account', 'freshio'); ?></a> </span> </div> <form class="freshio-login-form-ajax" data-toggle="validator"> <p> <label><?php esc_attr_e('Username or email', 'freshio'); ?> <span class="required">*</span></label> <input name="username" type="text" required placeholder="<?php esc_attr_e('Username', 'freshio') ?>"> </p> <p> <label><?php esc_attr_e('Password', 'freshio'); ?> <span class="required">*</span></label> <input name="password" type="password" required placeholder="<?php esc_attr_e('Password', 'freshio') ?>"> </p> <button type="submit" data-button-action class="btn btn-primary btn-block w-100 mt-1"><?php esc_html_e('Login', 'freshio') ?></button> <input type="hidden" name="action" value="freshio_login"> <?php wp_nonce_field('ajax-freshio-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?', 'freshio'); ?>"><?php esc_attr_e('Lost your password?', 'freshio'); ?></a> </div> <?php }
And add shortcode Social Login: https://nextendweb.com/nextend-social-login-docs/usage/
March 28, 2022 at 5:35 pm #21730albacodeSupport ExpiredIn which file do we add the code?
March 31, 2022 at 12:47 am #21779Please copy this code and paste to file functions.php ( child-theme).
March 31, 2022 at 2:11 am #21787albacodeSupport ExpiredThank you so much
April 2, 2022 at 3:37 pm #21845Ok, let me know if you need to help.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.