Home › Forums › Front-end Issues › Color-picker.min.js Uncaught ReferenceError › Reply To: Color-picker.min.js Uncaught ReferenceError
Answering my own question… found a snippet online that resolves the issue – credit to whoever provided it!
add_action( 'wp_print_scripts', 'pp_deregister_javascript', 99 );
function pp_deregister_javascript() {
if(!is_admin())
{
wp_dequeue_script('wp-color-picker');
wp_deregister_script( 'jquery-ui-datepicker' );
wp_deregister_script( 'wp-color-picker-js-extra' );
wp_deregister_script( 'wp-color-picker' );
}
}
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.