Redirect or Alter CoursePress Signup Button

Team WPMU,

I'm looking to use CoursePress to provide some instructional content to the members of my network. I do not have "allow registration" enabled on my network, as I prefer to handle registration via Gravity Forms.

CoursePress has a built in signup function that is active when a non-member tries to register for a course. As I don't have registration through WordPress allowed, it presents a pop-up that says registration is not allowed. It looks like this:

<img src="http://success.thedigitalcomic.com/files/2014/11/CoursePress-signup-popup.png">

How can I change this so it points the prospective member to where they can sign up?

Thanks,
Rob

  • Bojan Radonic

    Hey there Rob, hope you're well today!

    You can redirect your website users to a specific page by adding some custom js into the theme you're using. Please add this code to any js file in your theme:

    jQuery( document ).ready( function( $ ) {
       /* Signup redirection */
       $( 'button.apply-button.signup' ).live( 'click', function( e ) {
           e.preventDefault();
           e.stopPropagation();
           window.location = "http://www.google.com/";
       } );
    } );

    Replace the http://www.google.com/ with the URL of the page you want your users to be redirected to.

    Please let me know if this helps :slight_smile:

    Best regards,
    Bojan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.