Skip to content

Instantly share code, notes, and snippets.

@bdeleasa
Created January 23, 2017 19:06
Show Gist options
  • Select an option

  • Save bdeleasa/af094eb670275a89bdb4b8f3909b1b37 to your computer and use it in GitHub Desktop.

Select an option

Save bdeleasa/af094eb670275a89bdb4b8f3909b1b37 to your computer and use it in GitHub Desktop.
Dequeues the default stylesheet from the Ultimate Posts Widget plugin.
<?php
add_action( 'wp_enqueue_scripts', 'themename_dequeue_upw_styles', 999 );
/**
* Dequeues the default stylesheet from the Ultimate Posts Widget plugin.
*
* We're going to style the widget ourselves, so instead of loading and
* overriding unnecessary styles, we're just going to remove the stylesheet.
*
* @since 1.0.0
*
* @param none
* @return null
*/
function themename_dequeue_upw_styles() {
wp_dequeue_style( 'upw_theme_standard' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment