PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

How to dequeue style scripts?

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I want to change the behavior of drop down menu and need to replace the script. But I can not dequeue it.

This code:

add_action( 'wp_enqueue_scripts', 'dequeue_unnecessary_scripts' );
function dequeue_unnecessary_scripts() {
	wp_dequeue_script('woocs-style-1-js');
}

doesn’t work for this line:

<script  src='http://example.com/wp-content/plugins/woocommerce-currency-switcher/views/shortcodes/styles/style-1/actions.js?ver=2.3.5' id='woocs-style-1-js'></script>

Hello

wp_dequeue_script - this should be declared only after connecting the script

try to  use  action wp_footer