Last active
November 21, 2018 19:23
-
-
Save ajskelton/35b694fdbfed722e90df to your computer and use it in GitHub Desktop.
A function and hook to remove the styling for the WordPress Media Player
This file contains 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
function remove_mediaelement_styles() { | |
wp_dequeue_style('wp-mediaelement'); | |
wp_deregister_style('wp-mediaelement'); | |
} | |
add_action( 'wp_print_styles', 'remove_mediaelement_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment