Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #641533

    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

    #642289

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.