• Resolved mizzinc

    (@mizzinc)


    I know its an odd request, but how do we go about disabling the front.css and front.js scripts? I have attempted to do this using the following in a function but no luck.

    
    wp_dequeue_style( 'woocommerce-currency-switcher', WOOCS_LINK . 'css/front.css' );
    wp_deregister_script( 'woocommerce-currency-switcher', WOOCS_LINK . 'js/front.js' );
    

    Thanks,

Viewing 1 replies (of 1 total)
  • pavloborysenko

    (@pavloborysenko)

    Hello

    	wp_dequeue_script( 'woocommerce-currency-switcher' );
    	wp_deregister_script( 'woocommerce-currency-switcher' );
            wp_dequeue_style( 'woocommerce-currency-switcher');
            wp_deregister_style('woocommerce-currency-switcher');
    

    It is also very important where you will use this code
    Example add_action('wp_head', 'deregister_script_style', 1000);

Viewing 1 replies (of 1 total)
  • The topic ‘dequeue style and scripts’ is closed to new replies.