Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1360066
    Toy49
    Participant

    Hello,

    I followed this thread, but it didn’t worked out :

    https://community.theme.co/forums/topic/datapicker-replacement/

    Then creates a new folder js folder x-child/js/, after that copy datepicker-your-lang.js file to this folder.

    Finally, add following code below into functions.php file locates in child theme’s folder:

    add_action( 'gform_enqueue_scripts', 'add_datepicker_regional', 11 );
    function add_datepicker_regional() {
    	if ( wp_script_is( 'gform_datepicker_init', $list = 'queue' ) ) {
    		wp_enqueue_script( 'datepicker-regional', get_stylesheet_directory_uri() . '/js/datepicker-your-lang.js', array( 'gform_datepicker_init' ), false, true );
    	}
    }

    (Of course I changed datepicker-your-lang.js by my language in both the file and the code) ^_^

    Thank you very much in advance.

    Best regards,

    Stephanie.

    #1360068
    Toy49
    Participant
    This reply has been marked as private.
    #1360097
    Rahul
    Moderator

    Hi There,

    Thank you for contacting us 🙂

    Please make sure in your code, you’re using get_stylesheet_directory_uri not get_template_directory_uri function.

    If it doesn’t work, please share us your login credentials so we can take a closer look.

    Don’t forget to set it as private.

    Thanks.

    #1362548
    Toy49
    Participant
    This reply has been marked as private.
    #1362730
    Lely
    Moderator

    Hi There,

    Your code is correct when I check. But then on this page:http://www.lelemons.fr/contact/ you don’t have gravity form. It is ninja form. The code check if gravity form is added. Please try it on a page with gravity form.

  • <script> jQuery(function($){ $("#no-reply-1360066 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>