WooCommerce Social Login - by dbosnj35 - on WordPress WooCommerce support

This topic has 5 replies, 4 voices, and was last updated 8 years, 8 months ago ago by Jack Richardson

  • Avatar: dbosnj35
    dbosnj35
    Participant
    August 3, 2015 at 23:07

    Hi,

    I have purchased WooCommerce Social Login plugin and it works great on checkout page. I would like to add it in the sign in drop down window in header. Can I do that?

    4 Answers
    Avatar: josh9787
    josh9787
    Participant
    August 6, 2015 at 13:32

    this would also be useful to know

    Avatar: Eva
    Eva Kemp
    Support staff
    August 6, 2015 at 19:08

    Hello @dbosnj35,

    In this case you have to edit the file wp-content/themes/royal/framework/theme-functions.php (lines 921-953), replace the current code with the one you want to use. We recommend to make all changes in a child theme http://codex.wordpress.org/Child_Themes (if you use child theme you’ll have to copy all function code and insert it to functions.php in the child theme directory).

    Regards,
    Eva Kemp.

    Avatar: dbosnj35
    dbosnj35
    Participant
    August 7, 2015 at 16:56

    Thank you Eva,

    I have different line numbers in my editor. Could you paste the code here so I can search it?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 8, 2015 at 09:13

    Hello,

    The code is below:

    <li class="login-link">
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>"><?php _e( 'Sign In', ETHEME_DOMAIN ); ?></a>
    <?php if($popups) : ?>
    <div class="login-popup">
    <div class="popup-title">
    <span><?php _e( 'Login Form', ETHEME_DOMAIN ); ?></span>
    </div>
    <form method="post" class="login" action="<?php echo get_the_permalink( get_option( 'woocommerce_myaccount_page_id' ) ); ?>">
    <?php do_action( 'woocommerce_login_form_start' ); ?>
    <p class="form-row form-row-first">
    <label for="username"><?php _e( 'Username or email', 'woocommerce' ); ?> <span class="required">*</span></label>
    <input type="text" class="input-text" name="username" id="username" />
    </p>
    <p class="form-row form-row-last">
    <label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
    <input class="input-text" type="password" name="password" id="password" />
    </p>
    <div class="clear"></div>
    <?php do_action( 'woocommerce_login_form' ); ?>
    <p class="form-row">
    <?php wp_nonce_field( 'woocommerce-login' ); ?>
    <input type="submit" class="button" name="login" value="<?php _e( 'Login', 'woocommerce' ); ?>" />
    </p>
    <div class="clear"></div>
    <?php do_action( 'woocommerce_login_form_end' ); ?>
    </form>
    </div>
    <?php endif; ?>
    </li>

    Best regards,
    Jack Richardson.

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.