Can't dequeue a plugin css file
-
Hi there is a plugin which adds a css file which I want to dequeue
public function addStyles_frontend() { // Enqueue Styles wp_enqueue_style( 'prefix-font-awesome' , '//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' , array() , '4.3.0' ); }
In my child theme fucntions.php I have this code
function remove_unwanted_css(){ wp_dequeue_style('prefix-font-awesome'); } add_action( 'wp_enqueue_scripts', 'remove_unwanted_css', 100 );
But it doesn’t dequeue the css file…So what am I doing wrong?
Thanks
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Can't dequeue a plugin css file’ is closed to new replies.