Hi @nicolaivarney,
I hope you are well today and thank you for your question.
The theme automatically calculates post reading time using below code based on the number of words contained in the post.
function gillion_read_time( $string ) {
$string = strip_tags($string);
$string = preg_replace('/\s+/', ' ', trim($string));
$words = explode(" ", $string);
$words = count($words);
$min = floor($words / 200);
$sec = floor($words % 200 / (200 / 60));
if( $min < 1 ) {
return '1 min <span>'.esc_html__( 'read', 'gillion' ).'</span>';
}
if( $sec >= 20 ) {
$min++;
}
return $min . ' min <span>'.esc_html__( 'read', 'gillion' ).'</span>';
}
Best regards,
Shufflehound team