Quantcast
Channel: Matt's Technology Blog » WordPress
Viewing all articles
Browse latest Browse all 6

WordPress: Disabling Plugin Stylesheet

$
0
0

You must have seen that WordPress plugins can slow your site down with additional HTTP Requests such as adding their own stylesheet. For advanced users, who are adding custom styles for the announcement, you do not need to have an additional HTTP request for a useless stylesheet. Then add the following function in your theme’s functions.php file:

<?php
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
    function my_deregister_styles() {
    wp_deregister_style( 'ninja-annc-css' );
}
?>
WordPress: Disabling Plugin Stylesheet is a post from; Matt's Technology Blog which is not allowed to be copied on other sites.

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images