Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jamesasu/d126eca3b061ef22d79b to your computer and use it in GitHub Desktop.
Save jamesasu/d126eca3b061ef22d79b to your computer and use it in GitHub Desktop.
<?php
// Wordpress Themes built with Sage (http://roots.io)
// These actions will dequeue all junk CSS and JS that plugins attempt to include in your theme:
function dequeue_doubleup_styles() {
wp_dequeue_style('minimax-bootstrap');
wp_dequeue_style('module-styles');
wp_dequeue_style('wp-color-picker');
wp_dequeue_style('row-styles');
wp_dequeue_style('fa');
wp_dequeue_style('font-awesome');
wp_dequeue_style('contact-form-7');
}
add_action('wp_print_styles', __NAMESPACE__ . '\\dequeue_doubleup_styles', 999);
function dequeue_doubleup_scripts() {
wp_dequeue_script('wp-color-picker');
wp_dequeue_script('iris');
wp_dequeue_script('bootstrap-js');
wp_dequeue_script('contact-form-7');
}
add_action('wp_enqueue_scripts', __NAMESPACE__ . '\\dequeue_doubleup_scripts', 999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment