Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #750194

    I was wanting to change the date format on a contact form from Euro to American format and followed these instructions, which completely took down my site. I have tried to delete from Functions PHP, but it is not working. The site is fieldandvineevents.com.

    PLEASE HELP!!!

    add_filter(‘avf_datepicker_dateformat’, ‘avia_change_dateformat_cf’);
    add_filter(‘avf_datepicker_date_placeholder’, ‘avia_change_placeholder_cf’);

    function avia_change_dateformat_cf() { return ‘dd / mm / yy’; }
    function avia_change_placeholder_cf() { return ‘DD / MM / YY’; }

    #750216

    Hey tbelgard8707,
    Could you provide us with the ftp access to your files?

    Best regards,
    Jordan Shannon

    #750592

    Hi there, I thought I provided this info yesterday. Hoping you can help! My site has been down a full day now, and I’m losing business!!

    Go Daddy info in private content below

    #750616

    Hi,
    Have you added any other custom functions to the functions.php page?

    Best regards,
    Jordan Shannon

    #750629

    Not that I know of, though it’s been a long time since I built the site, no my memory is hazy. I went ahead and restored my files through my host to an earlier version, so my site is no longer down.

    BUT, I would still like to fix the date format on my form to American month/date/year instead of the day/month/year that is in there. Can you help me with that?

    Thanks!!

    #750638

    Hi!

    Go to your Settings from dashboard and from there, you can select the way you want it to be visible.
    Let us know if it works

    Best regards,
    Basilis

    #750730

    I’ve tried that, but it doesn’t seem to affect the format in the contact form. Which is why I entered the code referenced in the initial message.

    #752518

    Hi,

    As Basilis suggested earlier you should be able to easily change the date format from Settings > General

    The admin login details is not working for me to check it for you.

    Please try again and let us know.

    Best regards,
    Vinay

    #764389

    Your suggestion to change the date code in general settings does not seem to affect the form on this page http://fieldandvineevents.com/?page_id=1520

    Site login info in private content below.

    #765563

    Hi,

    It seems like you have figured it out already? :)

    For future readers, please add following code to Functions.php file in Appearance > Editor

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

    Best regards,
    Yigit

    #765578

    No, I have not figured it out. I changed the date code in general settings, but it still shows up with day/month/year instead of month/day/year.

    Last time I tried to add the code, it took down the whole site. Is there anyway you can do that for me, with the credentials I provided?

    #765587

    Hey!

    I edited functions.php file on your website and added the code i posted above. Please review your website now :)

    Cheers!
    Yigit

    #765595

    Oh yay!!! You are fabulous, thank you soooooo much!!

    #765602

    Hi!

    You are welcome!

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘HELP ASAP – I added some code that has taken down my site!’ is closed to new replies.