How to make course progress outline fully expanded

When using the Course Progress shortcode, the course outline(s) will be compacted into a single element. When the element is clicked the outline will expand. There might be some cases in which you'd like a single outline to be expanded by default. To do so, simply add the following JavaScript to the course progress page.

var $j = jQuery.noConflict();
$j(document).ready(function() {
$j('.wpcw_fe_course_progress_course a').closest('.wpcw_fe_summary_course_progress').find('#wpcw_fe_course_progress_detail_2').fadeIn('fast');

Replace the digit, in this case the number 2 "#wpcw_fe_course_progress_detail_2" with the ID of the course you want to expand.

Still need help? Contact Us Contact Us