Changing the time appearance in Course curriculum page

Home Forums Legacy Support Support queries Setup issues Changing the time appearance in Course curriculum page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #97993
    42S
    Spectator
    Time appearance in course curriculum need to change i don't see option to change that " 01:20:30 " time needs to be needed to " 1 Hr 20 Mins 30 Sec "
    #98010
    MrVibe
    Keymaster
    There is a reason why we prefer to show it this way, because in responsive mode the 1hr, 20 mins 30 seconds would appear too big for mobile screens. Try below code : Add this code in child theme functions.php file. Also make sure you have FTP details when you're testing this code so that if you make some mistake in copying and pasting the code you can remove it. add_action('wp',function(){ add_filter('bp_course_get_full_course_curriculum',function($curriculum,$course_id){   foreach($curriculum as $key => $item){   if(isset($item['duration'])){   $duration = get_post_meta($item['id'],'vibe_duration',true);   $duration_parameter = apply_filters("vibe_".$item['type']."_duration_parameter",60,$item['id']);   $total_duration = $duration*$duration_parameter; if(function_exists('tofriendlytime')){ $item['duration'] = tofriendlytime($total_duration); } $curriculum[$key] = $item; }   }   return $curriculum;},10,2);});   p.s:  This is a customisation request, customisations are not included in theme support.  
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Changing the time appearance in Course curriculum page’ is closed to new replies.