WooCommerce select2.css dequeue

Add your functions.php

add_action( 'wp_enqueue_scripts', 'brown_dequeue_stylesandscripts', 100 );

function brown_dequeue_stylesandscripts() {
if ( class_exists( 'woocommerce' ) ) {
wp_dequeue_style( 'select2' );
wp_deregister_style( 'select2' );

wp_dequeue_script( 'select2');
wp_deregister_script('select2');

}
}

Written by Uğur

Leave a Reply

Your email address will not be published. Required fields are marked *