Title: can´t dequeue stylesheets
Last modified: August 20, 2016

---

# can´t dequeue stylesheets

 *  [mjHollerATme](https://wordpress.org/support/users/mjholleratme/)
 * (@mjholleratme)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cant-dequeue-stylesheets/)
 * Hi devnz,
 * great plugin!
    Anyway i want CSS to be disabled so I’ll have less network activity
 * So I wanted to dequeue the styles in functions.php:
 * add_action(‘wp_enqueue_scripts’, ‘dequeue_function’);
    function dequeue_function(){
   wp_dequeue_style(‘gctwidgetstyles’); wp_dequeue_style(‘gctwidget’); }
 * But it won´t work. I thought maybe it´s because on line 688 it’s not called with
   wp_enqueue_scripts like ‘gctwidgetstyles’ if I’m right? (I´m not really a php
   developer):
 * wp_enqueue_style(‘gctwidgetstyles’, plugins_url(‘/assets/css/gctwidget.css’, 
   __FILE__ ), false, ‘1.0’, ‘all’);
 * Tried it with wp_deregister_style also although I didn´t found this in the core
   code.
    I would really appreciate it if you could make this work with a little
   update or so as I really don´t want to comment out the core code…
 * Regards,
    Jonathan Holler
 * [http://wordpress.org/extend/plugins/gc-testimonials/](http://wordpress.org/extend/plugins/gc-testimonials/)

The topic ‘can´t dequeue stylesheets’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gc-testimonials.svg)
 * [GC Testimonials](https://wordpress.org/plugins/gc-testimonials/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gc-testimonials/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gc-testimonials/)
 * [Active Topics](https://wordpress.org/support/plugin/gc-testimonials/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gc-testimonials/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gc-testimonials/reviews/)

## Tags

 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)
 * [Stylesheet](https://wordpress.org/support/topic-tag/stylesheet/)
 * [wp_enqueue_scripts](https://wordpress.org/support/topic-tag/wp_enqueue_scripts/)

 * 0 replies
 * 1 participant
 * Last reply from: [mjHollerATme](https://wordpress.org/support/users/mjholleratme/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/cant-dequeue-stylesheets/)
 * Status: not resolved