Disable WPSolr default css and js for Facets

  • 10 months, 1 week ago #33707

    Hi, Can we disable this css and js, I tried using wp dequeue but didnt worked for this. Can you pls suggest
    Image image.png of Disable WPSolr default css and js for Facets

    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' );
    
    wpsolr
    Keymaster
    10 months, 1 week ago #33708

    Perhaps your dequeue code is called before WPSOLR’s enqueue code?

    10 months, 1 week ago #33786

    I added it in functions.php file, where I generally dequeued many other plugins css, but not working with wpsolr

    wpsolr
    Keymaster
    10 months, 1 week ago #33805

    Perhaps set a low priority like 99 in the action parameters that calls the deregister function.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.