-
AuthorPosts
-
February 21, 2017 at 11:06 pm #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’; }February 22, 2017 at 12:49 am #750216Hey tbelgard8707,
Could you provide us with the ftp access to your files?Best regards,
Jordan ShannonFebruary 22, 2017 at 6:47 pm #750592Hi 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
February 22, 2017 at 7:42 pm #750616Hi,
Have you added any other custom functions to the functions.php page?Best regards,
Jordan ShannonFebruary 22, 2017 at 7:56 pm #750629Not 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!!
February 22, 2017 at 8:03 pm #750638Hi!
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 worksBest regards,
BasilisFebruary 22, 2017 at 10:45 pm #750730I’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.
February 27, 2017 at 9:27 pm #752518Hi,
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,
VinayMarch 21, 2017 at 10:19 pm #764389Your 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.
March 23, 2017 at 4:55 pm #765563Hi,
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,
YigitMarch 23, 2017 at 5:12 pm #765578No, 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?
March 23, 2017 at 5:30 pm #765587Hey!
I edited functions.php file on your website and added the code i posted above. Please review your website now :)
Cheers!
YigitMarch 23, 2017 at 5:42 pm #765595Oh yay!!! You are fabulous, thank you soooooo much!!
March 23, 2017 at 5:45 pm #765602Hi!
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 -
AuthorPosts
- The topic ‘HELP ASAP – I added some code that has taken down my site!’ is closed to new replies.