• By default date fields are handled by the HTML5 datepicker which doesn’t work in all browsers. The documentation says I can use a jQuery calendar instead for all browsers for a more uniform experience by adding the following to the theme’s functions.php:

    add_filter( 'wpcf7_support_html5', '__return_false' );
    add_filter( 'wpcf7_support_html5_fallback', '__return_true' );

    When I did this, it did deactivate the HTML5 datepicker, but no calendar appeared in any browser. If I only added the fallback filter without disabling HTML5 support, the jQuery calendar appeared in Firefox and IE, but the HTML5 datepicker was still used in other browsers.

    How can I get both of these commands to work together? I’d like to disable the HTML5 datepicker and use the jQuery calendar in all browsers, regardless of their HTML5 support.

  • The topic ‘Cross browser date field issues’ is closed to new replies.