[Plugin: TablePress Responsive Tables] TablePress Responsive Deregister CSS
-
I have trouble with deregistring the css files for tablepress-responsive-tables and tablepress-responsive-tables-flip.
I found in the plugin.php the lines:
public static function enqueue_css_files() { $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; $url = plugins_url( "css/responsive.dataTables{$suffix}.css", __FILE__ ); wp_enqueue_style( self::$slug, $url, array(), self::$version ); } public static function enqueue_css_files_flip() { $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; $url = plugins_url( "css/tablepress-responsive-flip{$suffix}.css", __FILE__ ); wp_enqueue_style( self::$slug . '-flip', $url, array( 'tablepress-default' ), self::$version ); // Wrap the <link> tag in a conditional comment to only use the CSS in non-IE browsers. echo "<!--[if !IE]><!-->\n"; wp_print_styles( self::$slug . '-flip' ); echo "<!--<![endif]-->\n"; }
and
protected static $slug = 'tablepress-responsive-tables';
So I guess the right handle is “tablepress-responsive-tables” or “tablepress-responsive-tables-flip” but It doesn’t work.
Tried this code variations:
add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); function my_deregister_styles() { wp_dequeue_style('tablepress-responsive-tables'); wp_deregister_style( 'tablepress-responsive-tables' ); wp_dequeue_style('tablepress-responsive-tables-flip'); wp_deregister_style( 'tablepress-responsive-tables-flip' ); }
But nothing works. CSS-File is still there. Can someone help me?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[Plugin: TablePress Responsive Tables] TablePress Responsive Deregister CSS’ is closed to new replies.