Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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,
    Ryan

    #1206104

    Hi 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,
    Nikko

    #1206215

    i 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?

    #1206280

    Hi 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,
    Nikko

    #1206306

    that was an easy fix – thank you!

    #1206308

    Hi ryanmeighan,

    You’re welcome, glad we could help :)

    Best regards,
    Nikko

    #1206310

    ok 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

    #1206315
    This reply has been marked as private.
    #1206320

    Hi 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,
    Nikko

    #1206323
    This reply has been marked as private.
    #1206325

    Hi 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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Month and day in reverse order on date picker’ is closed to new replies.