WordPress.org

Ready to get started?Download WordPress

Forums

GC Testimonials
can´t dequeue stylesheets (1 post)

  1. mjHollerATme
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic