• Resolved shaadakhan

    (@shaadakhan)


    Hello,
    I wonder how to edit
    tutor_course_completing_progress_bar();
    I want to make it circular instead of straight line on dashboard pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shaadakhan

    (@shaadakhan)

    I managed to get it.

    if($total_lessons != "0" && $completed_lessons != "0"){
      $total_l = (int)$total_lessons;
      $completed_c = (int)$completed_lessons;                               
      $percentage = ( $completed_c/$total_l) * 100;
      $uncompleted = 100 - round($percentage);
      echo round($percentage) . " Percentage <br>";
       echo $uncompleted;
       }else{
    // Do something
      }

    Dear @shaadakhan

    If you want to show it in the loop, you need to modify this file. Because the progress bar is coming from here.

    /tutor/templates/single/course/enrolled/completing-progress.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit progress bar on dashboard pages’ is closed to new replies.