Title: How remove default JS, CSS registration?
Last modified: September 1, 2016

---

# How remove default JS, CSS registration?

 *  Resolved [landsman](https://wordpress.org/support/users/landsman/)
 * (@landsman)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-remove-default-js-css-registration/)
 * Hi,
 * how can i overload / disable loading JS as “woocoomerce.min.js” etc?
    I was found
   this code: [https://gist.github.com/DevinWalker/7621777/](https://gist.github.com/DevinWalker/7621777/)
   but not working 🙁
 * Can reply what is wrong on this code?
    I want remove / disable only 1-2 scripts,
   not all.
 * Thanks
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  [Caleb Burks](https://wordpress.org/support/users/icaleb/)
 * (@icaleb)
 * Automattic Happiness Engineer
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-remove-default-js-css-registration/#post-7623161)
 * That code doesn’t disable it from loading, it just ensures that those scripts/
   styles only load on WooCommerce pages. Why do you want to stop woocoomerce.min.
   js from loading? That will have some pretty bad consequences.
 * This is the correct function to use though: [https://codex.wordpress.org/Function_Reference/wp_dequeue_script](https://codex.wordpress.org/Function_Reference/wp_dequeue_script).
 * If you need help writing this code, I’d recommend hiring a developer:
 * – [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
    – [https://codeable.io/](https://codeable.io/)
 *  Thread Starter [landsman](https://wordpress.org/support/users/landsman/)
 * (@landsman)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-remove-default-js-css-registration/#post-7623200)
 * Thanks. I got it. I was no look on condition for removing only where not woocommerce
   pages.
 * I know consequences.
 * I will create theese custom scripts in theme from non uglify sources. Why loading
   something, what i will not using. Woocommerce have styles in scss too. It’s good
   base for building.
 *  [Harpinder Singh](https://wordpress.org/support/users/hrpindrmann/)
 * (@hrpindrmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-remove-default-js-css-registration/#post-7623214)
 * Please solve my problem also at [https://wordpress.org/support/topic/woocommerce_cart-and-woocommerce_checkout-shortcodes-not-working?replies=2](https://wordpress.org/support/topic/woocommerce_cart-and-woocommerce_checkout-shortcodes-not-working?replies=2)
 *  Thread Starter [landsman](https://wordpress.org/support/users/landsman/)
 * (@landsman)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-remove-default-js-css-registration/#post-7623223)
 * [@hrpindrmann](https://wordpress.org/support/users/hrpindrmann/) this is not 
   relates

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

The topic ‘How remove default JS, CSS registration?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)
 * [wp_dequeue_script](https://wordpress.org/support/topic-tag/wp_dequeue_script/)

 * 4 replies
 * 3 participants
 * Last reply from: [landsman](https://wordpress.org/support/users/landsman/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/how-remove-default-js-css-registration/#post-7623223)
 * Status: resolved