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

    I used the instructions here https://kriesi.at/support/topic/date-picker-format/ to alter the date format on my website’s contact form to display American style (mm/dd/yy rather than dd/mm/yy), but the code seems to have disappeared when I updated to the latest version of the Enfold theme. Now I’m not seeing the functions.php file. Can someone please clarify up-to-date instructions for changing the date format? Thanks!

    #693663

    Hey EliseBrowneHughes,

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_datepicker_dateformat', 'new_date_format');
    function new_date_format() {
    $date_format = " mm / dd / yy";
    return $date_format;
    }
    add_filter('avf_datepicker_date_placeholder', 'new_date_placeholder');
    function new_date_placeholder() {
    $placeholder = "MM / DD / YY";
    return $placeholder;
    }

    This changes will be overwritten when you update the theme. To avoid that, please use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Yigit

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