Skip to content

Instantly share code, notes, and snippets.

@SeanTOSCD
Created July 27, 2017 21:15
Show Gist options
  • Save SeanTOSCD/907f39b56b2a4258e30200c748513f0a to your computer and use it in GitHub Desktop.
Save SeanTOSCD/907f39b56b2a4258e30200c748513f0a to your computer and use it in GitHub Desktop.
EDD checkout login form hack - 2
// Checkout form login toggle
$('.edd-checkout-show-login-form').on('click',function(e){
e.preventDefault();
$(this).parents( ".edd-show-login-wrap" ).siblings( "#edd_login_fields" ).show();
$( "#edd_login_fields #edd_user_login" ).focus();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment