Hi there How to dequeue css belonging to the plugin with wp_dequeue_style in a child theme? The path of the file is this: plugins/td-standard-pack/Newspaper/assets/css/td_standard_pack_main.css
CodePudding user response:
To dequeue a file, you first need to find the ID of that particular css/js file by checking the View Source of the page.
Once you locate the ID, then you can just dequeue the css/js file using the code code.
add_action( 'wp_enqueue_scripts', 'rf_remove_resources', 999 );
function rf_remove_resources() {
wp_dequeue_style('td-standard-pack-framework-front-style-css');
wp_dequeue_style('td-standard-pack-framework-front-style');
}