Created
January 23, 2017 19:06
-
-
Save bdeleasa/af094eb670275a89bdb4b8f3909b1b37 to your computer and use it in GitHub Desktop.
Dequeues the default stylesheet from the Ultimate Posts Widget plugin.
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 | |
| 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