wp dequeue styles code example
Example: wp_dequeue_style
add_action( 'wp_enqueue_scripts', function() {
if (! is_front_page()) { // allow widget style only in front page
wp_dequeue_style('fpw_styles_css');
}
});
add_action( 'wp_enqueue_scripts', function() {
if (! is_front_page()) { // allow widget style only in front page
wp_dequeue_style('fpw_styles_css');
}
});