Home › Forums › ACF PRO › Select2 Conflict with Awesome Support › Reply To: Select2 Conflict with Awesome Support
Currently i have the same problem in backend with another plugin (WP Customer Area).
I’ve temporarely solved with this code
function my_acf_admin_enqueue_scripts() {
wp_dequeue_script( 'select2');
wp_deregister_script( 'select2' );
wp_enqueue_style('select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css');
wp_enqueue_script('select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js', '', '', false);
}
add_action('admin_enqueue_scripts', 'my_acf_admin_enqueue_scripts');
But i don’t know if it’s the best approach and can bring problems to ACF backend pages and fields.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.