Skip to content

109 Sandbox

A website made for testing

How to deregister WordPress stylesheets

· Published: · UPD · In Recipes

How to deregister WordPress stylesheets, using the stylesheet of WP-PageNavi as an example:

function foo_deregister_styles() {
    wp_deregister_style('wp-pagenavi');
}

add_action('wp_print_styles', 'foo_deregister_styles', 100);