How to disable/turn off specific css in wordpress?

in wordpress turn off specific css, It is best flexible. You can do tons of things as well as some need base customization with it. When plugin activated, some useful latest plugins automatically google or any other ads their main css stylesheet to your WordPress website. This is best in most cases, but it is a lot available cleaner to have all your some clear cache css styles in single stylesheet i also learn to remove unused css wordpress plugin.

Read Also:  PHP Laravel create Custom helper

Question: How can you remove a CSS file that was registered with wp_enqueue_style ?

There are best simple way to disable specifics plugin’s stylesheet or remove unused css wordpress.

Step 1: wordpress turnoff specific css

Open plugin file and look for code starting with wp_enqueue_style ( $handle, $src, $deps, $ver, $media );. Look for handle name.

Sample Example: If you are using Redirection Plugin, look for below some line of source code and then get handle name main redirection .

Read Also:  IMPLODE() AND EXPLODE() FUNCTION IN PHP

wp_enqueue_style( 'redirection', plugin_dir_url( __FILE__ ).'admin.css', $this->version() );

Also Read : How to Enable Theme and Plugin Editor in WordPress?

Step 2: Add Code In functions.php

here simple you can Open functions.php file and the simply enter below added source code:

add_action( 'wp_print_styles', 'deregister_my_styles', 100 );
 
function deregister_my_styles() {
	wp_deregister_style( 'redirection' );
}

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about How to Disable CSS and Javascript Files in WordPress?.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Read Also:  Laravel 6 CONCAT Multiple Columns with example

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  wordpress Download - free - latest version
  2. Read Also:  jQuery delay Effects with Animation Example
  3. Read Also:  Dynamically Add Remove multiple input fields in PHP MYSQL with Jquery Ajax
  4. Read Also:  PHP Create PDF file using mpdf | tcpdf | fpdf | php html to pdf
  5. Read Also:  failed to load resource: the server responded with a status of 404 (not found)
  6. Read Also:  10 Useful tools for web developers and designer
  7. Read Also:  SQL Inner, Left, Right and Full Joins
  8. Read Also:  Simple Create WordPress Plugin Tutorial
  9. Read Also:  Wordpress Plugin uninstall hook - register_uninstall_hook()
  10. Read Also:  woocommerce_payment_complete Hooks