Forums

Contact Form 7 Datepicker
Load Script/Enqueue Script not working (1 post)

  1. Sina
    Member
    Posted 9 months ago #

    The enqueue options as shown on the 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.