Created
May 14, 2023 06:34
-
-
Save geekontheroad/0d5db6ea0db66f1c016f81f92c594055 to your computer and use it in GitHub Desktop.
Removes the Astra styling for gravity forms
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 | |
/** | |
* The CSS added by the Astra theme conflicts with GF styling especially with the new Orbital styling | |
* This script unloads the Astra CSS for gravity forms to fix this problem | |
* | |
* @author https://geekontheroad.com | |
**/ | |
//unload astra styles for gravity forms as they make things worse | |
function unload_astra_gravity_forms_css() { | |
wp_dequeue_style('astra-gravity-forms'); | |
} | |
add_action('gform_enqueue_scripts', 'unload_astra_gravity_forms_css', 9999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment