Created
March 4, 2015 05:07
-
-
Save jamesasu/d126eca3b061ef22d79b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?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