Support » Plugin: Post Reading Time » Show to hide 0 minutes

  • How could I hide the “0 minutes” indication if the reading time is less than a minute?
    This is probably the code I should modify?

    if($time == "1") {
    	if($seconds >= 30) {
    		$minutes = $minutes + 1;
    	}
    	$estimated_time = $estimated_time.' '.$minutes . ' minute'. ($minutes == 1 ? '' : 's');
    	}
    	else {
    	$estimated_time = $estimated_time.' '.$minutes . ' minute'. ($minutes == 1 ? '' : 's') . ', ' . $seconds . ' seconde' . ($seconds == 1 ? '' : 's');
    }

    https://wordpress.org/plugins/post-reading-time/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d also like to know this.

    At present when the reading time is under a minute by default it says:

    ESTIMATED READING TIME: 0 MINUTES LESS THAN A MINUTE READ

    I’d like to know how to remove the beginning part so for <minute reads it only displays:

    LESS THAN A MINUTE READ

    It’s almost what I would like to do as the current message is not so great and repeats hisself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show to hide 0 minutes’ is closed to new replies.