Tagged: x
-
AuthorPosts
-
February 6, 2017 at 1:18 pm #1360066
Toy49ParticipantHello,
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.
February 6, 2017 at 1:18 pm #1360068
Toy49ParticipantThis reply has been marked as private.February 6, 2017 at 1:37 pm #1360097
RahulModeratorHi 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.
February 8, 2017 at 3:56 am #1362548
Toy49ParticipantThis reply has been marked as private.February 8, 2017 at 7:31 am #1362730
LelyModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1360066 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
