Last active
August 29, 2015 14:02
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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