• Resolved regeisle

    (@regeisle)


    I’m using this for a few basic filter dropdowns. I’ve got my own styling and there’s no ajax/extras needed. Is it possible to remove the css/js that gets loaded on the front end? It’s not needed in my case so it’s adding unnecessarily bulk, and it’s also causing some js conflicts with other scripts. I’ve tried the usual wp_dequeue_style and wp_dequeue_script but no luck. Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter regeisle

    (@regeisle)

    Realized the core js is needed to update content in the dropdown change so looks like we’ll need to keep that at least. If you could provide some direction on how to get rid of the jquery-ui js stuff, and css, that would be great. thanks!

    Plugin Author stepasyuk

    (@stepasyuk)

    Hi @regeisle

    Thank you for using the plugin.

    In general you can use wp_dequeue_style and wp_dequeue_script functions, but you have to fire them after Filter Everything does this. For example you can use them in the function hooked for ‘wp_print_scripts’ hook but with late priority, for example 100 or 1000. Optionally you can use functions ‘wp_deregister_script’, ‘wp_deregister_style’ as they remove scripts and styles with more chances.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disable css and js?’ is closed to new replies.