Tagged: CONTACT FORM, datepicker
-
AuthorPosts
-
April 21, 2020 at 10:20 pm #1205966
The datepicker on my contact forum is switching the month and day. I want it to be in the format mm/dd/yy, but it is currently dd/mm/yy. Please refer to this thread for more information https://kriesi.at/support/topic/datepicker-flip-flopping-month-and-day/ which has not gotten a response so I opened a new thread.
Thanks,
RyanApril 22, 2020 at 10:03 am #1206104Hi ryanmeighan,
Guenni’s solution should work:
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; }
However you will need to put it in the child theme, so any modification wouldn’t be lost during a theme update.
You can download the child theme here and find instruction on how to use it: https://kriesi.at/documentation/enfold/child-theme/Best regards,
NikkoApril 22, 2020 at 3:18 pm #1206215i uploaded the child theme, but it overrode all of my quick CSS from the main theme and messed up a bunch of styling on the site. How do i fix this issue? do i need to do a restore and copy paste the CSS from the main theme to the child theme?
April 22, 2020 at 5:25 pm #1206280Hi ryanmeighan,
You can do this by going to Enfold Child > Import/Export > click Import Settings from your Parent Theme.
You can find this instruction in the link I gave in Step 4.Best regards,
NikkoApril 22, 2020 at 6:24 pm #1206306that was an easy fix – thank you!
April 22, 2020 at 6:30 pm #1206308Hi ryanmeighan,
You’re welcome, glad we could help :)
Best regards,
NikkoApril 22, 2020 at 6:32 pm #1206310ok importing the CSS from parent theme worked however i tried the functions.php thing on the child theme, received an error message, and now the styling and homepage are jacked up again. screenshot in private
April 22, 2020 at 6:41 pm #1206315This reply has been marked as private.April 22, 2020 at 6:51 pm #1206320Hi Ryan,
Some hosting environments doesn’t work properly when it comes to Theme Editor, probably due to some extra securities.
It’s much better to work via FTP or Cpanel so you can modify it with 99.9% success.Best regards,
NikkoApril 22, 2020 at 6:58 pm #1206323This reply has been marked as private.April 22, 2020 at 7:02 pm #1206325Hi Ryan,
I’m glad to hear that :)
I hope everything will run smoothly on your site.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Month and day in reverse order on date picker’ is closed to new replies.