The Course picture does not work as link in the Course List

In the Course List, the course's picture does not work as a link to the course, as it did before.

  • Dimitris

    Hello morfjord,

    in order to link images in the actual course page, you should make some changes in the plugin's code in coursepress/2.0/include/coursepress/data/shortcode/class-course.php file.
    Specifically, around lines 1448-1449 you should be seeing something like that:

    $content .= '<div class="course-thumbnail course-featured-media course-featured-media-' . $course_id . ' ' . $class . '">';
    $content .= ! empty( $wrapper ) ? '<' . $wrapper . ' style="' . $wrapper_style . '">' : '';

    Try to replace it with:

    $wrapper = 'a';
    $content .= '<div class="course-thumbnail course-featured-media course-featured-media-' . $course_id . ' ' . $class . '">';
    $content .= ! empty( $wrapper ) ? '<' . $wrapper . ' style="' . $wrapper_style . '" href="'.get_post_permalink($course_id).'">' : '';

    Please keep in mind that this change will be lost after a plugin update, so you should re-apply it.

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.