Your account expired support, please renew to get your support.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21576
    salvorezo
    Support Expired

    Come posso spostare il Link “Crea un Account” più a destra? Lo vorrei a margine del Box.
    Inoltre posso inserire un plugin per accedere con Google o Facebook?
    Se si quale mi consigliate e come fare?
    Grazie

    Visit:
    Login

    #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/

    #21730
    albacode
    Support Expired

    In which file do we add the code?

    #21779

    Please copy this code and paste to file functions.php ( child-theme).

    #21787
    albacode
    Support Expired

    Thank you so much

    #21845

    Ok, let me know if you need to help.

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

You must be logged in to reply to this topic.