I'd like to remove the course duration, badge and certificate from the course page. See screenshot.
Can you please let me know how to do this?
Hi I'm trying it but now all information is gone.
I only need to hide course duration and badge.
I need to display the price.
Pleae check attachment.
Please remove the code that you have added and add the given code in your wplms-customizer.php file at the end before "?>" in wplms customizer plugin :
add_filter('wplms_course_details_widget','remove_wplms_course_details_widget');
function remove_wplms_course_details_widget($course_details){
$key = array('time','badge','certificate');
foreach($key as $k){
unset($course_details[$k]);
}
return $course_details;
}
Now it works.
Many thanks