Created
August 12, 2021 13:25
-
-
Save cbirdsong/c105318a3b85c63ee0d86d016598671b to your computer and use it in GitHub Desktop.
Remove some/all gravity forms CSS
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
<?php | |
function gravity_forms_remove_theme_css() | |
{ | |
// remove Gravity Forms CSS | |
// wp_dequeue_style('gforms_reset_css'); | |
// wp_dequeue_style('gforms_datepicker_css'); // Ugly datepicker > broken illegible datepicker | |
// wp_dequeue_style('gforms_formsmain_css'); | |
wp_dequeue_style('gform_theme'); | |
wp_dequeue_style('gform_theme_ie11'); | |
} | |
add_action('gform_enqueue_scripts', 'gravity_forms_remove_theme_css', 11); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment