Disable site-wide css loading
-
Recently I wrote the following code to prevent TablePress from loading its css on all pages.
function disable_sitewide_tablepress() { global $post; if( !has_shortcode( $post->post_content, 'table') ) { wp_deregister_style( 'tablepress-default' ); } } add_action( 'wp_enqueue_scripts', 'disable_sitewide_tablepress', 100 );
Unfortunately, that stopped working now. Did anything change in the plugin that affects my snippet?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Disable site-wide css loading’ is closed to new replies.