February 2, 2022 at 6:12 pm
#96717
Theme Horse Support Team
Keymaster
Hi there,
To put posted x minutes ago on the articles just go to theme main directory inc > functions.php on line no: 124 there you will see below line of code:
$time_string = get_the_time( get_option( 'date_format' ) );
replace the above line of code with below one:
$time_string = human_time_diff( get_post_time('U'), current_time('timestamp') ) . " " . __('ago', 'newscard');
Note: We recommended you to create a child theme for customizing the theme main code so that the customization code won’t lost whenever you update the theme to the new version. You can simply override the function code with above line of code into your chid theme function.php file.
Thank you!