Skip to content

Instantly share code, notes, and snippets.

@ajskelton
Last active November 21, 2018 19:23
Show Gist options
  • Save ajskelton/35b694fdbfed722e90df to your computer and use it in GitHub Desktop.
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
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