Skip to content

Instantly share code, notes, and snippets.

@davidkryzaniak
Created May 25, 2014 17:57
Show Gist options
  • Save davidkryzaniak/922a42555968c9c0270b to your computer and use it in GitHub Desktop.
Save davidkryzaniak/922a42555968c9c0270b to your computer and use it in GitHub Desktop.
<?php
// 'after_setup_theme', with 100, so it is the absolute last thing to load
add_action('after_setup_theme', 'customize_parent_includes', 100);
function customize_parent_includes() {
//again, set this to 100 so it is the last thing loaded
add_action('wp_enqueue_scripts', 'bootstrap_custom', 100);
}
//crap to remove
function bootstrap_custom()
{
//-------- dequeue here! --------
//dequeue the style:
wp_dequeue_style('font-awesome'); //'font-awesome' was enqueued in the parent. Dequeue it.
//dequeue the script:
wp_dequeue_script('hover-script'); //'font-awesome' was enqueued in the parent. Dequeue it.
wp_dequeue_script('main-script'); //'font-awesome' was enqueued in the parent. Dequeue it.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment