Skip Navigation

[Resolved] How to deactivate Toolset Blocks frontend css

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Shawn 5 years ago.

Assisted by: Luo Yang.

Author
Posts
#1462407

Is there a way to deactivate the css being loaded on the front end by the Toolset Blocks plugin? There are styles being added via the 'views-frontend.css' file that I'd like to remove and it doesn't appear that the wp_dequeue function will work here.

#1463063

Hello,

For CSS file views-frontend.css, you can try action hook "enqueue_block_assets", for example:

function remove_scripts() {
	wp_dequeue_style( 'view_editor_gutenberg_frontend_assets');
	wp_deregister_style( 'view_editor_gutenberg_frontend_assets' );
}
add_action( 'enqueue_block_assets', 'remove_scripts', 999 );

More help:
https://developer.wordpress.org/reference/hooks/enqueue_block_assets/

#1464049

That worked, thanks Luo!