If I modify a PHP file inside framework folder inside enfold theme folder will I lost my modification when I update the theme?
Should I replicate the framework folder / PHP file in my child theme and do the modification there?
Will it work this way?
Which is the best solution?
What I need to achieve is remove the “hour” information on “Recent Posts” widget.
TIA
Regards
Petroni
Hey lpetroni,
Please add following code to Functions.php file of your child theme in Appearance > Editor
add_filter('avia_widget_time', 'change_avia_date_format', 10, 2);
function change_avia_date_format($date, $function) {
$time_format = get_option('date_format');
return $time_format;
}
Best regards,
Yigit