Skip to content

Instantly share code, notes, and snippets.

@Willem-Siebe
Last active August 29, 2015 14:02
Show Gist options
  • Save Willem-Siebe/681168b39da04ea356de to your computer and use it in GitHub Desktop.
Save Willem-Siebe/681168b39da04ea356de to your computer and use it in GitHub Desktop.
Remove CSS and JS from WooCommerce Views plugin, because it's conflicting with my Bootstrap LESS or because it's not needed! See http://wp-types.com/forums/topic/disable-wcviews-style-css/. It seems to only disable loading in frontend of the site (which is good) and not the backend of WordPress (which is fine).
// Remove CSS and JS from WooCommerce Views plugin, because it's conflicting with my Bootstrap LESS or because it's not needed! See https://gist.github.com/Willem-Siebe/681168b39da04ea356de.
function wsis_remove_woocommerce_views_assets() {
wp_dequeue_style('wcviews-style');
// To make the WooCommerce Tabs work.
wp_dequeue_script('woocommerce_views_custom_script');
}
add_action('wp_enqueue_scripts','wsis_remove_woocommerce_views_assets',999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment