PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

where datepicker beforeShowDay script goes...

  1. I am unclear where the jQuery script to deselect days should go. I have read on another thread it should be in the functions.php within the -child theme folder. This makes logical since due to if anything is updated (Gravity Forms Plugin, WordPress theme, or the CMS itself) the code will be safe in the themename-child directory.

    Another way is adding the scripting code inside the Plugins directory (gravityforms/js/datepicker.js). I just appended the javascript (in this example-->http://jsfiddle.net/rLnTQ/104/) below the markup within datepicker.js. This breaks the datepicker, so I cannot figure this out. Plus if the Plugin is updated the code becomes overwritten.

    My question is when JavaScript/jQuery code is added to maximize the use of the product, where should it go? What is the most efficient way?

    Thank You

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  2. Richard Vav
    Administrator

    Hi,

    You shouldn't edit files contained in the plugin directory as any changes you make will be lost during updates, please take a look at the following page of the documentation for guidance on where to place code, http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    Regards,
    Richard

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  3. Thank you, I found my solution.

    Posted 11 years ago on Wednesday July 10, 2013 | Permalink
  4. Richard Vav
    Administrator

    Good to hear.

    Posted 11 years ago on Wednesday July 10, 2013 | Permalink

This topic has been resolved and has been closed to new replies.