This topic has 5 replies, 4 voices, and was last updated 8 years, 8 months ago ago by Jack Richardson
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?
this would also be useful to know
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.
Thank you Eva,
I have different line numbers in my editor. Could you paste the code here so I can search it?
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.
You must be logged in to reply to this topic.Log in/Sign up