• Resolved iugonathan

    (@iugonathan)


    Thanks for creating this great plugin.

    I noticed on my site the GF DateTime picker would render in the style of jQuery UI’s Datepicker.

    I fixed my issue by adding the following filters to make sure Advanced Custom Field’s datetimepicker JS and CSS are not enqueued on the frontend (I’m not using their frontend forms):

    if ( ! is_admin() ) {
        add_filter( 'acf/settings/enqueue_datetimepicker', '__return_false' );
        add_filter( 'acf/settings/enqueue_datepicker', '__return_false' );
    }

    Wanted to share this fix in case anyone else is having this issue.

    I can’t work out what causes ACF’s datetimepicker CSS/JS to be enqueued in frontend pages however.

    I installed a fresh WordPress site with the Twenty Twenty-One Theme, Gravity Forms, Date Time Field Add-On for Gravity Form and Advanced Custom Fields Pro. Latest versions of each. I wanted to provide you with an easy to reproduce environment for seeing this issue.

    Your DateTime GF field renders fine however – because ACF is not enqueuing their datetimepicker CSS/JS on my test page.

    Thank you,
    Nathan

Viewing 1 replies (of 1 total)
  • Plugin Author Awais

    (@awais300)

    Nathan,

    Thank you for sharing your solution.

    I will try to reproduce and look into the issue as soon as I can.

    Thank you.
    Awais

Viewing 1 replies (of 1 total)
  • The topic ‘Possible conflict with Advanced Custom Fields Pro’ is closed to new replies.