Home » Topics » Technical and configuration issues » Actions and filters » Disable WPSolr default css and js for Facets
Hi, Can we disable this css and js, I tried using wp dequeue but didnt worked for this. Can you pls suggest
Tried below code, didnt worked
wp_dequeue_style('js/ion.rangeSlider/css/ion.rangeSlider.skinFlat.css' ); wp_deregister_style('js/ion.rangeSlider/css/ion.rangeSlider.skinFlat.css' ); wp_dequeue_style('js/ion.rangeSlider/css/ion.rangeSlider.css' ); wp_deregister_style('js/ion.rangeSlider/css/ion.rangeSlider.css' ); wp_dequeue_style('template/facet-ion-range-slider/wpsolr-facet-ion-range-slider.css' ); wp_deregister_style('template/facet-ion-range-slider/wpsolr-facet-ion-range-slider.css' );
Perhaps your dequeue code is called before WPSOLR’s enqueue code?
I added it in functions.php file, where I generally dequeued many other plugins css, but not working with wpsolr
Perhaps set a low priority like 99 in the action parameters that calls the deregister function.
You must be logged in to reply to this topic.