Gravity forms css conflict

Hi There

I’ve taken a look at the different threads on this issue and I’ve added this to my functions.php child theme: add_action(‘wp_enqueue_scripts’, ‘no_x_gravity_form_css’, 9999999);
function no_x_gravity_form_css () {
wp_dequeue_style( ‘x-gravity-forms’ );
}

cleared the cache and still I’m getting stacked fields. If you could let me know if there is something I might be missing that would be awesome I’m currently using gf_left_third, gf_middle_third and gf_right_third

https://lasperegrinas.org/20-20-club-campaign/

Hello @ninja21,

Thanks for writing in!

Please update the code and use this instead:

add_action('after_setup_theme', 'no_x_gravity_form_css', 9999);
function no_x_gravity_form_css () {
    remove_action( 'gform_enqueue_scripts', 'x_gravity_forms_enqueue_styles');
}

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.