Prevent GravityView from loading its CSS styles

If you want to apply your own CSS styles to your Views and stop bothering with the default styles loaded by GravityView then that can be easily achieved with the code snippet below:

add_action( 'wp_enqueue_scripts', 'gv_dequeue_main_css', 30 );
add_action( 'wp_print_footer_scripts', 'gv_dequeue_main_css', 2 );
function gv_dequeue_main_css() {
	wp_dequeue_style( 'gravityview_default_style' );
	wp_dequeue_style( 'gravityview_style_default_table' );
	wp_dequeue_style( 'gravityview_style_default_list' );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.