Skip Navigation

[Resolved] Remove blocks CSS

This support ticket is created 3 years, 1 month 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by marcusB-3 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2183241

I've been through all the various deregistration posts, but none of them remove the following css. Any ideas?

<link rel='stylesheet' id='toolset-blocks-css' href='hidden link' type='text/css' media='all' />

#2183443

Hi,

Thank you for contacting us and I'd be happy to assist.

Removing a built-in CSS file like this one, can result in performance and functionality-related issues, which is why I'll recommend highly against removing it.

If you absolutely want to remove it, you can use:


// define constant to stop lazy loading of Toolset scripts and styles
define("TB_SCRIPT_STYLE_LAZY_LOAD",false);

add_action( 'wp_enqueue_scripts', 'remove_default_scripts', 9999 );
function remove_default_scripts() {   
	wp_dequeue_style( 'toolset-blocks' );
	wp_deregister_style( 'toolset-blocks' );
}

regards,
Waqar

#2184139

My issue is resolved now. Thank you!