CoursePress Pro "START HERE" button not working

On the /dashboard page, students click the "START HERE" button, and it doesn't do anything. This started happening after I updated to CoursePress Pro 2. Support login has been activated.

  • Rupok

    Hi Paul,

    Thanks for sharing the workaround with us. I found that our developer has already pushed a patch and it's under testing at this moment. If you want to try this, can you please login to your server with any FTP application like filezilla and go to "/wp-content/plugins/coursepress/2.0/include/coursepress/data/shortcode/" folder and open the "class-coursetemplate.php" file?

    After opening the file, go to line: 403. There you will see the following line:
    $button = '<button data-link="' . esc_url( $button_url ) . '" class="apply-button apply-button-details ' . esc_attr( $class ) . '">' . esc_html( $details_text ) . '</button>';

    Replace this line with the following code:

    global $post;
    if ( CoursePress_Data_Course::is_course( $post ) ) {
    $button = '<button data-link="' . esc_url( $button_url ) . '" class="apply-button apply-button-details ' . esc_attr( $class ) . '">' . esc_html( $details_text ) . '</button>';
    } else {
    $button = '<a href="' . esc_url( $button_url ) . '" class="apply-button apply-button-details ' . esc_attr( $class ) . '">' . esc_html( $details_text ) . '</a>';
    }

    This should fix the issue. And hopefully this will be added in our next release. So you won't need to do this manually again after updating this plugin to our upcoming version.

    Please let us know if you have any further query. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.