Title: [Plugin: Contact Form 7 Datepicker] Load Script/Enqueue Script not working
Last modified: August 20, 2016

---

# [Plugin: Contact Form 7 Datepicker] Load Script/Enqueue Script not working

 *  [Sina](https://wordpress.org/support/users/tinath/)
 * (@tinath)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-datepicker-load-scriptenqueue-script-not-working/)
 * The enqueue options as shown on the [Changelog](http://wordpress.org/extend/plugins/contact-form-7-datepicker/changelog/)
   page, doesn’t appear to be working.
 *     ```
       if (is_page('Form page')) {
           if (function_exists('CF7DatePicker'))
              add_action('wp_enqueue_scripts', array('CF7DatePicker', 'plugin_enqueues'));
       }
       ```
   
 * or
 *     ```
       function cf7dp_enqueues() {
           if (is_page('Form page')) {
               if (function_exists('CF7DatePicker'))
                   CF7DatePicker::plugin_enqueues();
           }
       }
       add_action('init', 'cf7dp_enqueues');
       ```
   
 * I’ve tried both replacing ‘Form page’ with the page the Date Picker is being 
   used on, but it won’t appear.
 * Any idea would be greatly appreciated.

Viewing 1 replies (of 1 total)

 *  [cblockmedia](https://wordpress.org/support/users/cblockmedia/)
 * (@cblockmedia)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-datepicker-load-scriptenqueue-script-not-working/#post-2934706)
 * I am having issues getting my code to work! Each works independently, but not
   collectively… Any help?
 * function nix_scripts()
    { wp_enqueue_script( ‘toggle’, get_template_directory_uri().‘/
   js/toggle.js’, array( ‘jquery’) );
 * wp_enqueue_script( ‘tabs’, get_template_directory_uri() . ‘/js/tabs.js’, array(‘
   jquery’) );
 * wp_enqueue_script( ‘accordion’, get_template_directory_uri() . ‘/js/accordion.
   js’, array( ‘jquery’) );
    }
 * add_action( ‘init’, ‘nix_scripts’ );

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Contact Form 7 Datepicker] Load Script/Enqueue Script not working’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-datepicker.svg)
 * [Contact Form 7 Datepicker](https://wordpress.org/plugins/contact-form-7-datepicker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-datepicker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-datepicker/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-datepicker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-datepicker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-datepicker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [cblockmedia](https://wordpress.org/support/users/cblockmedia/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-datepicker-load-scriptenqueue-script-not-working/#post-2934706)
 * Status: not resolved