Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Dropdowns not showing up and have search filter on the current page › Reply To: Dropdowns not showing up and have search filter on the current page
December 12, 2020 at 10:17 am
#30664
Keymaster
Sure, you can use this custom code to force dequeue the generated search styles:
function asp_deregister_all_styles() {
wp_dequeue_style('wpdreams-ajaxsearchpro-instances');
}
add_action( 'wp_enqueue_scripts', 'asp_deregister_all_styles' );
add_action( 'init', 'asp_deregister_all_styles');
add_action( 'wp_print_scripts', 'asp_deregister_all_styles', 100 );
add_action( 'wp_print_styles', 'asp_deregister_all_styles', 100 )
Use this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!