Methods used to add the custom detail in course directory page. Optionally try this : https://wplms.io/support/knowledge-base/show-custom-featured-block-in-course-directory/
1.Add the following code in wplms_customizer.php and make customization in this function.
if(!function_exists('bp_course_item_view')){ function bp_course_item_view(){ $filter = apply_filters('bp_course_single_item_view',0); if($filter){ return; } $course_classes = apply_filters('bp_course_single_item','course_single_item',get_the_ID()); ?> <li class="<?php echo $course_classes; ?>" itemscope itemtype="http://data-vocabulary.org/Review-aggregate"> <div class="item-avatar" itemprop="photo"> <?php bp_course_avatar(); ?> </div> <div class="item"> <div class="item-title" itemprop="itemreviewed"><?php bp_course_title(); if(get_post_status() != 'publish'){echo '<i> ( '.get_post_status().' ) </i>';} ?></div> <div class="item-meta"><?php bp_course_meta(); ?></div> <div class="item-desc"><?php bp_course_desc(); ?></div> <div class="item-credits"> <?php bp_course_credits(); ?> </div> <div class="item-instructor"> <?php bp_course_instructor(); ?> </div> <div class="item-action"><?php bp_course_action() ?></div> <?php do_action( 'bp_directory_course_item' ); ?> </div> <div class="clear"></div> </li> <?php } }
2. Display custom content in course directory page .
Add the following function in customizer_class.php
i)Add it in _construct()
ii) add this function outside __construct()