Passer la navigation

[Résolu] Remove blocks CSS

This support ticket is created Il y a 3 années et 9 mois. 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 -

Fuseau horaire du supporter : Asia/Karachi (GMT+05:00)

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par marcusB-3 Il y a 3 années et 9 mois.

Assisté par: Waqar.

Auteur
Publications
#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='lien caché' 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!