/*Reverse sticky header*/
  1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Dequeue Unnecessary Scripts and Styles

How to Dequeue Unnecessary Scripts and Styles

For dequeuing and enqueuing scripts/styling on login, you can follow this syntax.

Please make sure that the ID is similar to your declaration. If you’re unable to find it, kindly reach out to the plugin author for assistance.

function tirarScripts() { wp_dequeue_style( 'slate-js' ); } add_action( 'login_enqueue_scripts', 'tirarScripts' );
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Support

To speak to our Agency consultant, fill in the form found at our Contact Page.

"*" indicates required fields

Get Started

Enter your name and email address to get started with your project...

Name*