• Hi dear plugin creator,

    First I want to say great plugin, thanks for that.

    I would like to completely remove the Plugins CSS.
    I tried adding these in my theme’s functions.php but it doesn’t work:

    wp_dequeue_style('responsive-tabs');
    wp_dequeue_style('rtbs');
    wp_dequeue_style('rtbs_style');

    How can I get it removed?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Darko

    (@spwebguy)

    Hi there,

    When are you using this code?

    You might want to hook it to: wp_enqueue_scripts.

    Like:

    
    add_action( 'wp_enqueue_scripts', 'remove_stylesheet', 20 );
    function remove_stylesheet() {
       /* Here */
    }
    

    Hope this helps.

    • This reply was modified 7 years, 6 months ago by WP Darko.
    Thread Starter kansas3d

    (@kansas3d)

    Hi WP Darko,

    thanks for your answer.

    I am using this code in my theme’s twentyseventeen functions.php.
    I want to remove the complete css of “responsive-tab” plugin.

    Doesn’t your code integrate CSS?:

    add_action( 'wp_enqueue_scripts', 'remove_stylesheet', 20 );
    function remove_stylesheet() {
       /* Here */
    }

    Thanks

    Thread Starter kansas3d

    (@kansas3d)

    Thanks WP Darko, it worked.
    That’s what I did:

    add_action('wp_print_styles', 'mytheme_dequeue_css_from_plugins', 100);
    function mytheme_dequeue_css_from_plugins()  {
    	wp_dequeue_style( "rtbs" ); 
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get CSS removed?’ is closed to new replies.