CoursePress load Signup on enroll

Using CoursePress and have MarketPress integrated along with it. For Paid courses, when users clicks the "Enroll" button, the user has to click on the "Create an Account" link in the popup, to load the signup form.

Is there any workaround to load the signup form 1st instead of loading the login form?

  • Nithin
    • Support Wizard

    Hi CK Fusion,

    As mentioned in the chat, I’m checking this with the developers, to see whether there is any workaround regarding this. Will keep you posted once I get a feedback on whether there is quick way to achieve this functionality via the plugin side asap. Have a great day ahead. :slight_smile:

    Best Regards,


  • Konstantinos Xenos
    • Rubber Duck Debugger

    Hi CK Fusion !

    Could you add the following code into your functions.php ( preferably your child-themes ) and tell me if this works for you?

    This will basically ‘push’ the form into the signup stage first but leave the other ‘forms’ + links intact as well just in case someone wants to login instead.

    add_action( 'wp_footer', function() {
    myCustomLoginHook = function() {
    $(this).attr( 'href', '#');
    var newDiv = $( '<div class="cp-mask enrolment-container-div">' );
    newDiv.appendTo( 'body' );
    newDiv.html( CoursePress.Enrollment.dialog.render().el );
    CoursePress.Enrollment.dialog.openAtAction( 'signup' );
    return false;

    $( document ).on( 'click', '.cp-custom-login', myCustomLoginHook );
    }, 999 );



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.