Skip to content

Instantly share code, notes, and snippets.

@Willem-Siebe
Last active August 29, 2015 14:02
Show Gist options
  • Save Willem-Siebe/0f2f2eafc444239d25fe to your computer and use it in GitHub Desktop.
Save Willem-Siebe/0f2f2eafc444239d25fe to your computer and use it in GitHub Desktop.
Remove all Bootstrap 2.3.2 CSS from Toolset Bootstrap theme since I use the original LESS files of Bootstrap in my child theme. Remove from version 1.5 the style.css if you don't want to use it. See http://wp-types.com/forums/topic/demo-is-frustrating-me/#post-124761.
// Remove all Bootstrap 2.3.2 CSS from Toolset Bootstrap theme since I use the original LESS files of Bootstrap in my child theme, remove from version 1.5 the style.css if you don't want to use it, see https://gist.github.com/Willem-Siebe/0f2f2eafc444239d25fe.
function wsis_remove_toolset_bootstrap_CSS_files() {
wp_dequeue_style('wpbootstrap_bootstrap_responsive_css');
wp_dequeue_style('wpbootstrap_bootstrap_main_css');
wp_dequeue_style('toolset-bootstrap-theme-style');
}
add_action('wp_enqueue_scripts','wsis_remove_toolset_bootstrap_CSS_files',999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment